Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge branch 'fix-case-of-filename'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Hattori committed Mar 27, 2018
2 parents b21c126 + c89643e commit e0eb239
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ packageOpts =
asar: true
dir: 'dist'
out: 'packages'
name: config.name
name: config.productName
version: config.devDependencies['electron']
prune: true
packageManager: 'yarn'
overwrite: true
'app-bundle-id': 'jp.yhatt.marp'
'app-version': config.version
'version-string':
ProductName: config.name
InternalName: config.name
FileDescription: config.name
ProductName: config.productName
InternalName: config.productName
FileDescription: config.productName
CompanyName: 'yhatt'
LegalCopyright: ''
OriginalFilename: "#{config.name}.exe"
OriginalFilename: "#{config.productName}.exe"

packageElectron = (opts = {}, done) ->
packager extend(packageOpts, opts), (err) ->
Expand Down Expand Up @@ -137,7 +137,7 @@ gulp.task 'package:darwin', ->
arch: 'x64'
icon: Path.join(__dirname, 'resources/darwin/marp.icns')
}, ->
gulp.src ["packages/*-darwin-*/#{config.name}.app/Contents/Info.plist"], { base: '.' }
gulp.src ["packages/*-darwin-*/#{config.productName}.app/Contents/Info.plist"], { base: '.' }
.pipe $.plist
CFBundleDocumentTypes: [
{
Expand Down Expand Up @@ -185,15 +185,15 @@ gulp.task 'archive:darwin', (done) ->
target: release_to
basepath: Path.join(__dirname, path)
specification:
title: config.name
title: config.productName
background: Path.join(__dirname, "resources/darwin/dmg-background.png")
'icon-size': 80
window: {
position: { x: 90, y: 90 }
size: { width: 624, height: 412 }
}
contents: [
{ x: 210, y: 300, type: 'file', path: "#{config.name}.app" }
{ x: 210, y: 300, type: 'file', path: "#{config.productName}.app" }
{ x: 410, y: 300, type: 'link', path: '/Applications' }
]
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.12",
"private": true,
"description": "Markdown Presentation Writer (Powered by Electron)",
"productName": "Marp",
"repository": {
"type": "git",
"url": "https://github.com/yhatt/marp"
Expand Down

0 comments on commit e0eb239

Please sign in to comment.