mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-16 07:46:58 -04:00
Remove incompatible build types and add them as custom build option
This commit is contained in:
parent
e6f06059d9
commit
f47e7cd392
4
.github/workflows/build-electron.yml
vendored
4
.github/workflows/build-electron.yml
vendored
@ -59,13 +59,13 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- name: Build and publish 64bit
|
- name: Build and publish 64bit
|
||||||
run: npm run dist-linux64
|
run: npm run publish
|
||||||
- name: Build and pulblish 32bit
|
- name: Build and pulblish 32bit
|
||||||
run: |
|
run: |
|
||||||
echo "Changing Electron version to latest that supports 32bit Linux (18.3.15)"
|
echo "Changing Electron version to latest that supports 32bit Linux (18.3.15)"
|
||||||
sed -i -E 's/("electron":\s")[^"]+/\118.3.15/' ./package.json
|
sed -i -E 's/("electron":\s")[^"]+/\118.3.15/' ./package.json
|
||||||
npm install --save-dev
|
npm install --save-dev
|
||||||
npx run dist-linux32
|
npx electron-builder --linux AppImage:ia32 deb:ia32 rpm:ia32
|
||||||
- name: Upload packages to Kiwix
|
- name: Upload packages to Kiwix
|
||||||
run: |
|
run: |
|
||||||
echo "$SSH_KEY" > ./scripts/ssh_key
|
echo "$SSH_KEY" > ./scripts/ssh_key
|
||||||
|
11
package.json
11
package.json
@ -45,22 +45,19 @@
|
|||||||
{
|
{
|
||||||
"target": "AppImage",
|
"target": "AppImage",
|
||||||
"arch": [
|
"arch": [
|
||||||
"x64",
|
"x64"
|
||||||
"ia32"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target": "deb",
|
"target": "deb",
|
||||||
"arch": [
|
"arch": [
|
||||||
"x64",
|
"x64"
|
||||||
"ia32"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"target": "rpm",
|
"target": "rpm",
|
||||||
"arch": [
|
"arch": [
|
||||||
"x64",
|
"x64"
|
||||||
"ia32"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -86,8 +83,6 @@
|
|||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"dist-win": "electron-builder build --win",
|
"dist-win": "electron-builder build --win",
|
||||||
"dist-linux": "electron-builder build --linux",
|
"dist-linux": "electron-builder build --linux",
|
||||||
"dist-linux32": "electron-builder build --linux --ia32",
|
|
||||||
"dist-linux64": "electron-builder build --linux --x64",
|
|
||||||
"publish": "electron-builder",
|
"publish": "electron-builder",
|
||||||
"package-mac": "electron-packager . kiwix-js-windows --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
|
"package-mac": "electron-packager . kiwix-js-windows --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
|
||||||
"package-win": "electron-packager . kiwix-js-windows --overwrite --electron-version='18.3.14' --ignore=archives --ignore=AppPackages --ignore=BundleArtifacts --ignore=images$ --ignore=bin$ --ignore=electron_icons$ --ignore=manifests$ --ignore=screenshots$ --ignore=scripts$ --ignore=bld$ --ignore=KiwixWebApp.* --ignore=[pP]ackage.[aSl] --ignore=[.]git[hi][ug][bn] --ignore=[.]vs$ --ignore=vscode --platform=win32 --arch=ia32 --icon=www/img/icons/kiwix-64.ico --prune=true --out=bld/electron --version-string.CompanyName=Kiwix --version-string.FileDescription='Kiwix JS ZIM File Reader' --version-string.ProductName='Kiwix JS Windows Electron Edition'",
|
"package-win": "electron-packager . kiwix-js-windows --overwrite --electron-version='18.3.14' --ignore=archives --ignore=AppPackages --ignore=BundleArtifacts --ignore=images$ --ignore=bin$ --ignore=electron_icons$ --ignore=manifests$ --ignore=screenshots$ --ignore=scripts$ --ignore=bld$ --ignore=KiwixWebApp.* --ignore=[pP]ackage.[aSl] --ignore=[.]git[hi][ug][bn] --ignore=[.]vs$ --ignore=vscode --platform=win32 --arch=ia32 --icon=www/img/icons/kiwix-64.ico --prune=true --out=bld/electron --version-string.CompanyName=Kiwix --version-string.FileDescription='Kiwix JS ZIM File Reader' --version-string.ProductName='Kiwix JS Windows Electron Edition'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user