Merge pull request #898 from h3poteto/build-32

Build package for 32bit
This commit is contained in:
AkiraFukushima 2019-04-24 09:12:13 +09:00 committed by GitHub
commit a433abcda7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 13 deletions

View File

@ -2,7 +2,7 @@
VERSION = 1.0.0 VERSION = 1.0.0
all: install mac linux windows all: install mac linux win32 win64
install: package.json install: package.json
npm install npm install
@ -13,12 +13,17 @@ mac:
linux: linux:
npm run build:linux npm run build:linux
mv build/Whalebird-${VERSION}-linux.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.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.tar.bz2 build/Whalebird-${VERSION}-linux-x64.tar.bz2 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
windows: win32:
npm run build:windows npm run build:win32
mv build/Whalebird-${VERSION}-win.exe build/Whalebird-${VERSION}-windows-ia32.exe
win64:
npm run build: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:

View File

@ -25,8 +25,9 @@
"build:clean": "cross-env BUILD_TARGET=clean 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:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"build:mac": "node .electron-vue/build.js && electron-builder --mac --x64", "build:mac": "node .electron-vue/build.js && electron-builder --mac --x64",
"build:linux": "node .electron-vue/build.js && electron-builder --linux --x64", "build:linux": "node .electron-vue/build.js && electron-builder --linux",
"build:windows": "node .electron-vue/build.js && electron-builder --win --x64", "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", "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",
@ -44,7 +45,7 @@
"build": { "build": {
"productName": "Whalebird", "productName": "Whalebird",
"appId": "org.whalebird.desktop", "appId": "org.whalebird.desktop",
"artifactName": "${productName}-${version}-${os}.${ext}", "artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
"directories": { "directories": {
"output": "build" "output": "build"
}, },
@ -88,10 +89,33 @@
"linux": { "linux": {
"icon": "build/icons", "icon": "build/icons",
"target": [ "target": [
"deb", {
"rpm", "target": "deb",
"snap", "arch": [
"tar.bz2" "x64",
"ia32"
]
},
{
"target": "rpm",
"arch": [
"x64",
"ia32"
]
},
{
"target": "tar.bz2",
"arch": [
"x64",
"ia32"
]
},
{
"target": "snap",
"arch": [
"x64"
]
}
], ],
"category": "Network" "category": "Network"
} }