Skip to content

Commit

Permalink
added zipping for linux builds, refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcrn committed Nov 4, 2015
1 parent df70aed commit 62da1aa
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions node/package.json
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 ../"
}
}

0 comments on commit 62da1aa

Please sign in to comment.