Skip to content

Commit

Permalink
build: add macos target
Browse files Browse the repository at this point in the history
  • Loading branch information
jersou committed Sep 14, 2018
1 parent a457a79 commit 0ef54e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
"debug": "electron . --debug-markdown-explorer",
"serve": "gulp",
"build": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --all",

"build-lin64": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=x64 --platform=linux && cp -a ./doc dist/MarkdownExplorer-linux-x64/doc && cp ./icon.png launchers/MarkdownExplorer.sh dist/MarkdownExplorer-linux-x64/",
"build-win64": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=x64 --platform=win32 && cp -a ./doc dist/MarkdownExplorer-win32-x64/doc && cp ./icon.png dist/MarkdownExplorer-linux-x64/",
"build-lin32": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=ia32 --platform=linux && cp -a ./doc dist/MarkdownExplorer-linux-ia32/doc && cp ./icon.png launchers/MarkdownExplorer.sh dist/MarkdownExplorer-linux-ia32/",
"build-win32": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=ia32 --platform=win32 && cp -a ./doc dist/MarkdownExplorer-win32-ia32/doc && cp ./icon.png dist/MarkdownExplorer-linux-ia32/"

"build-win64": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=x64 --platform=win32 && cp -a ./doc dist/MarkdownExplorer-win32-x64/doc && cp ./icon.png dist/MarkdownExplorer-win32-x64/",
"build-win32": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=ia32 --platform=win32 && cp -a ./doc dist/MarkdownExplorer-win32-ia32/doc && cp ./icon.png dist/MarkdownExplorer-win32-ia32/",

"build-macos": "electron-packager . --out=dist --app-version=$npm_package_version --prune --asar --overwrite --icon=./icon.png --arch=x64 --platform=darwin && cp -a ./doc dist/MarkdownExplorer-darwin-x64/doc && cp ./icon.png dist/MarkdownExplorer-darwin-x64/"
},
"devDependencies": {
"electron": "^2.0.9",
Expand Down

0 comments on commit 0ef54e0

Please sign in to comment.