Build appx version of Electron app
2
.github/workflows/build-electron.yml
vendored
@ -85,6 +85,8 @@ jobs:
|
|||||||
|
|
||||||
Release_Windows:
|
Release_Windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
SIGNTOOL_PATH: "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64\\signtool.exe"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
|
BIN
electron_icons/appx/BadgeLogo.scale-100.png
Normal file
After Width: | Height: | Size: 287 B |
BIN
electron_icons/appx/BadgeLogo.scale-125.png
Normal file
After Width: | Height: | Size: 345 B |
BIN
electron_icons/appx/BadgeLogo.scale-150.png
Normal file
After Width: | Height: | Size: 394 B |
BIN
electron_icons/appx/BadgeLogo.scale-200.png
Normal file
After Width: | Height: | Size: 522 B |
BIN
electron_icons/appx/BadgeLogo.scale-400.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
electron_icons/appx/Kiwix_icon_nontransparent_store_logo.png
Normal file
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 79 KiB |
BIN
electron_icons/appx/Kiwix_icon_nontransparent_store_logo_150.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
electron_icons/appx/Kiwix_icon_nontransparent_store_logo_300.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
electron_icons/appx/Kiwix_icon_nontransparent_store_logo_71.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
electron_icons/appx/LargeTile.scale-100.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
electron_icons/appx/LargeTile.scale-125.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
electron_icons/appx/LargeTile.scale-150.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
electron_icons/appx/LargeTile.scale-200.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
electron_icons/appx/LargeTile.scale-400.png
Normal file
After Width: | Height: | Size: 157 KiB |
BIN
electron_icons/appx/SmallTile.scale-100.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
electron_icons/appx/SmallTile.scale-125.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
electron_icons/appx/SmallTile.scale-150.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
electron_icons/appx/SmallTile.scale-200.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
electron_icons/appx/SmallTile.scale-400.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
electron_icons/appx/Square150x150Logo.scale-100.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
electron_icons/appx/Square150x150Logo.scale-125.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
electron_icons/appx/Square150x150Logo.scale-150.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
electron_icons/appx/Square150x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 33 KiB |
BIN
electron_icons/appx/Square150x150Logo.scale-400.png
Normal file
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 725 B |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 3.0 KiB |
BIN
electron_icons/appx/Square44x44Logo.scale-100.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
electron_icons/appx/Square44x44Logo.scale-125.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
electron_icons/appx/Square44x44Logo.scale-150.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
electron_icons/appx/Square44x44Logo.scale-200.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
electron_icons/appx/Square44x44Logo.scale-400.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
electron_icons/appx/Square44x44Logo.targetsize-16.png
Normal file
After Width: | Height: | Size: 725 B |
BIN
electron_icons/appx/Square44x44Logo.targetsize-24.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
electron_icons/appx/Square44x44Logo.targetsize-256.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
electron_icons/appx/Square44x44Logo.targetsize-32.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
electron_icons/appx/Square44x44Logo.targetsize-48.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
electron_icons/appx/Wide310x150Logo.scale-100.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
electron_icons/appx/Wide310x150Logo.scale-125.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
electron_icons/appx/Wide310x150Logo.scale-150.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
electron_icons/appx/Wide310x150Logo.scale-200.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
electron_icons/appx/Wide310x150Logo.scale-400.png
Normal file
After Width: | Height: | Size: 93 KiB |
BIN
electron_icons/appx/icon.ico
Normal file
After Width: | Height: | Size: 353 KiB |
BIN
electron_icons/appx/icon.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
electron_icons/appx/splashscreen.scale-100.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
electron_icons/appx/splashscreen.scale-125.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
electron_icons/appx/splashscreen.scale-150.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
electron_icons/appx/splashscreen.scale-200.png
Normal file
After Width: | Height: | Size: 93 KiB |
BIN
electron_icons/appx/splashscreen.scale-400.png
Normal file
After Width: | Height: | Size: 161 KiB |
BIN
electron_icons/appx/storelogo.scale-100.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
electron_icons/appx/storelogo.scale-125.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
electron_icons/appx/storelogo.scale-150.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
electron_icons/appx/storelogo.scale-200.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
electron_icons/appx/storelogo.scale-400.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
electron_icons/appx/web_hi_res_512.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
images/icon.ico
Normal file
After Width: | Height: | Size: 353 KiB |
BIN
images/icon.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
images/icon_transparency.png
Normal file
After Width: | Height: | Size: 195 KiB |
14
package.json
@ -10,7 +10,7 @@
|
|||||||
"productName": "Kiwix JS Electron",
|
"productName": "Kiwix JS Electron",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "bld/Electron",
|
"output": "bld/Electron",
|
||||||
"buildResources": "../electron_icons"
|
"buildResources": "electron_icons"
|
||||||
},
|
},
|
||||||
"afterPack": "./scripts/appimage-fix.js",
|
"afterPack": "./scripts/appimage-fix.js",
|
||||||
"win": {
|
"win": {
|
||||||
@ -30,6 +30,9 @@
|
|||||||
{
|
{
|
||||||
"target": "portable",
|
"target": "portable",
|
||||||
"arch": "ia32"
|
"arch": "ia32"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "appx"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -69,6 +72,15 @@
|
|||||||
"allowElevation": "true",
|
"allowElevation": "true",
|
||||||
"runAfterFinish": "true"
|
"runAfterFinish": "true"
|
||||||
},
|
},
|
||||||
|
"appx": {
|
||||||
|
"backgroundColor": "transparent",
|
||||||
|
"displayName": "Kiwix JS Electron",
|
||||||
|
"identityName": "Kiwix.KiwixJS.Electron",
|
||||||
|
"publisher": "CN=Association Kiwix, O=Association Kiwix, L=Lausanne, C=CH",
|
||||||
|
"publisherDisplayName": "Association Kiwix",
|
||||||
|
"languages": "en-GB",
|
||||||
|
"showNameOnTiles": "true"
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"service-worker.js",
|
"service-worker.js",
|
||||||
"index.html",
|
"index.html",
|
||||||
|
@ -127,7 +127,7 @@ if (-not $githubonly) {
|
|||||||
|
|
||||||
$Packages | % {
|
$Packages | % {
|
||||||
$file = $_
|
$file = $_
|
||||||
if ($file -match '\.(exe|zip|msix)$') {
|
if ($file -match '\.(exe|zip|msix|appx)$') {
|
||||||
$directory = $file -replace '^(.+[\\/])[^\\/]+$', '$1'
|
$directory = $file -replace '^(.+[\\/])[^\\/]+$', '$1'
|
||||||
$filename = $file -replace '^.+[\\/]([^\\/]+)$', '$1'
|
$filename = $file -replace '^.+[\\/]([^\\/]+)$', '$1'
|
||||||
# Convert all spaces and hyphens to underscore
|
# Convert all spaces and hyphens to underscore
|
||||||
|