mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-01 19:49:08 +01:00
Divide build and electron-builder
This commit is contained in:
parent
a433abcda7
commit
72c3134206
13
Makefile
13
Makefile
@ -2,28 +2,31 @@
|
|||||||
|
|
||||||
VERSION = 1.0.0
|
VERSION = 1.0.0
|
||||||
|
|
||||||
all: install mac linux win32 win64
|
all: build mac linux win32 win64
|
||||||
|
|
||||||
install: package.json
|
install: package.json
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
build: install
|
||||||
|
npm run build
|
||||||
|
|
||||||
mac:
|
mac:
|
||||||
npm run build:mac
|
npm run package:mac
|
||||||
mv build/Whalebird-${VERSION}-mac.dmg build/Whalebird-${VERSION}-darwin-x64.dmg
|
mv build/Whalebird-${VERSION}-mac.dmg build/Whalebird-${VERSION}-darwin-x64.dmg
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
npm run build:linux
|
npm run package:linux
|
||||||
mv build/Whalebird-${VERSION}-linux-amd64.deb build/Whalebird-${VERSION}-linux-x64.deb
|
mv build/Whalebird-${VERSION}-linux-amd64.deb build/Whalebird-${VERSION}-linux-x64.deb
|
||||||
mv build/Whalebird-${VERSION}-linux-x86_64.rpm build/Whalebird-${VERSION}-linux-x64.rpm
|
mv build/Whalebird-${VERSION}-linux-x86_64.rpm build/Whalebird-${VERSION}-linux-x64.rpm
|
||||||
mv build/Whalebird-${VERSION}-linux-i386.deb build/Whalebird-${VERSION}-linux-ia32.deb
|
mv build/Whalebird-${VERSION}-linux-i386.deb build/Whalebird-${VERSION}-linux-ia32.deb
|
||||||
mv build/Whalebird-${VERSION}-linux-i686.rpm build/Whalebird-${VERSION}-linux-ia32.rpm
|
mv build/Whalebird-${VERSION}-linux-i686.rpm build/Whalebird-${VERSION}-linux-ia32.rpm
|
||||||
|
|
||||||
win32:
|
win32:
|
||||||
npm run build:win32
|
npm run package:win32
|
||||||
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-ia32.exe
|
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-ia32.exe
|
||||||
|
|
||||||
win64:
|
win64:
|
||||||
npm run build:win64
|
npm run package:win64
|
||||||
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-x64.exe
|
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-x64.exe
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
21
package.json
21
package.json
@ -20,20 +20,23 @@
|
|||||||
},
|
},
|
||||||
"main": "./dist/electron/main.js",
|
"main": "./dist/electron/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node .electron-vue/build.js && electron-builder",
|
|
||||||
"build:dir": "node .electron-vue/build.js && electron-builder --dir",
|
|
||||||
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
|
|
||||||
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
|
|
||||||
"build:mac": "node .electron-vue/build.js && electron-builder --mac --x64",
|
|
||||||
"build:linux": "node .electron-vue/build.js && electron-builder --linux",
|
|
||||||
"build:win32": "node .electron-vue/build.js && electron-builder --win --ia32",
|
|
||||||
"build:win64": "node .electron-vue/build.js && electron-builder --win --x64",
|
|
||||||
"build:mas": "npm run build:clean && npm run pack && electron-packager ./ 'Whalebird' --platform=mas --arch=x64 --electron-version=4.0.8 --asar.unpackDir='build/sounds' --out=packages --ignore='^/src' --ignore='^/test' --ignore='^/.electron-vue' --ignore='^/.envrc' --ignore='^/packages' --ignore='^/plist' --ignore='^/static' --ignore='^/whalebird.db' --ignore='^/screenshot.png' --prune=true --icon=./build/icons/icon.icns --overwrite --app-bundle-id=org.whalebird.desktop --app-version=$npm_package_config_appVersion --build-version=$npm_package_config_buildVersion --extend-info='./plist/team.plist' --osx-sign --app-category-type=public.app-category.social-networking",
|
|
||||||
"dev": "node .electron-vue/dev-runner.js",
|
"dev": "node .electron-vue/dev-runner.js",
|
||||||
"e2e": "npm run pack && mocha test/e2e",
|
"e2e": "npm run pack && mocha test/e2e",
|
||||||
"lint": "eslint --ext .js,.vue,.ts -f ./node_modules/eslint-friendly-formatter src spec",
|
"lint": "eslint --ext .js,.vue,.ts -f ./node_modules/eslint-friendly-formatter src spec",
|
||||||
"lint:fix": "eslint --ext .js,.vue,.ts -f ./node_modules/eslint-friendly-formatter --fix src test",
|
"lint:fix": "eslint --ext .js,.vue,.ts -f ./node_modules/eslint-friendly-formatter --fix src test",
|
||||||
"stylelint": "stylelint '**/*.vue' --syntax scss",
|
"stylelint": "stylelint '**/*.vue' --syntax scss",
|
||||||
|
"build": "node .electron-vue/build.js",
|
||||||
|
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
|
||||||
|
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
|
||||||
|
"build:mac": "npm run build && npm run package:mac",
|
||||||
|
"build:linux": "npm run build && npm run package:linux",
|
||||||
|
"build:win32": "npm run build && npm run package:win32",
|
||||||
|
"build:win64": "npm run build && npm run package:win64",
|
||||||
|
"build:mas": "npm run build:clean && npm run pack && electron-packager ./ 'Whalebird' --platform=mas --arch=x64 --electron-version=4.0.8 --asar.unpackDir='build/sounds' --out=packages --ignore='^/src' --ignore='^/test' --ignore='^/.electron-vue' --ignore='^/.envrc' --ignore='^/packages' --ignore='^/plist' --ignore='^/static' --ignore='^/whalebird.db' --ignore='^/screenshot.png' --prune=true --icon=./build/icons/icon.icns --overwrite --app-bundle-id=org.whalebird.desktop --app-version=$npm_package_config_appVersion --build-version=$npm_package_config_buildVersion --extend-info='./plist/team.plist' --osx-sign --app-category-type=public.app-category.social-networking",
|
||||||
|
"package:mac": "electron-builder --mac --x64",
|
||||||
|
"package:linux": "electron-builder --linux",
|
||||||
|
"package:win32": "electron-builder --win --ia32",
|
||||||
|
"package:win64": "electron-builder --win --x64",
|
||||||
"pack": "npm run pack:main && npm run pack:renderer",
|
"pack": "npm run pack:main && npm run pack:renderer",
|
||||||
"pack:main": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.main.config.js",
|
"pack:main": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.main.config.js",
|
||||||
"pack:renderer": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.renderer.config.js",
|
"pack:renderer": "cross-env NODE_ENV=production webpack --mode production --progress --colors --config .electron-vue/webpack.renderer.config.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user