-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added zipping for linux builds, refs #3
- Loading branch information
Showing
1 changed file
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
{ | ||
"name": "markright", | ||
"productName": "MarkRight", | ||
"version": "0.1.2", | ||
"electronVersion": "0.33.6", | ||
"description": "", | ||
"main":"app.js", | ||
"devDependencies": { | ||
"closurecompiler-externs": "^1.0.4", | ||
"electron-packager": "^5.1.0", | ||
"grunt": "^0.4.5", | ||
"grunt-build-atom-shell": "^2.1.1", | ||
"grunt-download-electron": "^2.1.2" | ||
}, | ||
"dependencies": { | ||
"marked": "^0.3.5" | ||
}, | ||
"scripts": { | ||
"start": "electron node/", | ||
"release": "npm run clean && npm run compile:prod && npm run build && npm run package", | ||
"name": "markright", | ||
"productName": "MarkRight", | ||
"version": "0.1.2", | ||
"electronVersion": "0.33.6", | ||
"description": "", | ||
"main":"app.js", | ||
"devDependencies": { | ||
"closurecompiler-externs": "^1.0.4", | ||
"electron-packager": "^5.1.0", | ||
"grunt": "^0.4.5", | ||
"grunt-build-atom-shell": "^2.1.1", | ||
"grunt-download-electron": "^2.1.2" | ||
}, | ||
"dependencies": { | ||
"marked": "^0.3.5" | ||
}, | ||
"scripts": { | ||
"start": "electron node/", | ||
"release": "npm run clean && npm run compile:prod && npm run build && npm run package", | ||
|
||
"clean": "npm run clean:dist && npm run clean:source", | ||
"clean:dist": "rm -rf ./dist", | ||
"clean:source": "rm -rf ./node/ui/js/", | ||
"clean": "npm run clean:dist && npm run clean:source", | ||
"clean:dist": "rm -rf ./dist", | ||
"clean:source": "rm -rf ./node/ui/js/", | ||
|
||
"compile:dev": "lein run -m build/main-dev && lein run -m build/ui-dev", | ||
"compile:prod": "lein run -m build/prod", | ||
"compile:dev": "lein run -m build/main-dev && lein run -m build/ui-dev", | ||
"compile:prod": "lein run -m build/prod", | ||
|
||
"build": "npm run build:osx && npm run build:win && npm run build:linux", | ||
"build:osx": "electron-packager node/ $npm_package_productName --out=dist --ignore='^/dist$' --overwrite --prune --asar --arch=all --platform=darwin --icon=./resources/icon.icns --version=$npm_package_electronVersion", | ||
"build:win": "electron-packager node/ $npm_package_productName --out=dist --arch=all --platform=win32 --ignore='^/dist$' --prune --asar --overwrite --icon=./resources/icon.ico --version=$npm_package_electronVersion", | ||
"build:linux": "electron-packager node/ $npm_package_productName --out=dist --arch=all --platform=linux --ignore='^/dist$' --prune --asar --overwrite --icon=./resources/icon.png --version=$npm_package_electronVersion", | ||
"build": "npm run build:osx && npm run build:win && npm run build:linux", | ||
"build:osx": "electron-packager node/ $npm_package_productName --out=dist --ignore='^/dist$' --overwrite --prune --asar --arch=all --platform=darwin --icon=./resources/icon.icns --version=$npm_package_electronVersion", | ||
"build:win": "electron-packager node/ $npm_package_productName --out=dist --arch=all --platform=win32 --ignore='^/dist$' --prune --asar --overwrite --icon=./resources/icon.ico --version=$npm_package_electronVersion", | ||
"build:linux": "electron-packager node/ $npm_package_productName --out=dist --arch=all --platform=linux --ignore='^/dist$' --prune --asar --overwrite --icon=./resources/icon.png --version=$npm_package_electronVersion", | ||
|
||
"package": "npm run package:win32 && npm run package:win64 && npm run package:osx", | ||
"package:win64": "electron-builder dist/markright-win32-x64/ --platform=win --out=dist --config=config.json && mv 'dist/MarkRight Setup.exe' dist/MarkRight_Windows64.exe", | ||
"package:win32": "electron-builder dist/markright-win32-ia32/ --platform=win --out=dist --config=config.json && mv 'dist/MarkRight Setup.exe' dist/MarkRight_Windows32.exe", | ||
"package:osx": "hdiutil create -format UDZO -srcfolder dist/MarkRight-darwin-x64/MarkRight.app dist/MarkRight_Mac.dmg" | ||
} | ||
"package": "npm run package:win32 && npm run package:win64 && npm run package:osx", | ||
"package:win64": "electron-builder dist/markright-win32-x64/ --platform=win --out=dist --config=config.json && mv 'dist/MarkRight Setup.exe' dist/MarkRight_Windows64.exe", | ||
"package:win32": "electron-builder dist/markright-win32-ia32/ --platform=win --out=dist --config=config.json && mv 'dist/MarkRight Setup.exe' dist/MarkRight_Windows32.exe", | ||
"package:osx": "hdiutil create -format UDZO -srcfolder dist/MarkRight-darwin-x64/MarkRight.app dist/MarkRight_Mac.dmg", | ||
"package:linux": "cd dist/ && zip -r MarkRight_Linux_x64.zip MarkRight-linux-x64 && zip -r MarkRight_Linux_ia32.zip MarkRight-linux-ia32 && cd ../" | ||
} | ||
} |