mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 19:57:46 -04:00
Script changes for UWP app
Former-commit-id: 448f497c0d0ac7f05397e2f5511480383503c14d [formerly 5f064297ef2d257c3650e1cebb0a5d239ad8fe65 [formerly 32b3e353722a6d46fb05a8c7a65f4af2ba94269a]] Former-commit-id: f89f99bc30b9d280152347a77cc26020c8121dd2 Former-commit-id: e1547957899efbfd9f57f229b916e5df1939dcfb
This commit is contained in:
parent
06feab34ca
commit
732ab8e401
@ -1,7 +1,7 @@
|
||||
param (
|
||||
[string]$tag_name = "",
|
||||
[switch]$dryrun = $false,
|
||||
[switch]$usetestrelease = $false,
|
||||
[switch]$usestorerelease = $false,
|
||||
[switch]$draftonly = $false
|
||||
)
|
||||
|
||||
@ -97,7 +97,7 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
"The draft release details were successfully created.`n"
|
||||
"Updating release version in package.json"
|
||||
$json_object = Get-Content -Raw "$PSScriptRoot/../package.json"
|
||||
$json_object = $json_object -replace '("version": ")[^"]+', "`${1}$base_tag"
|
||||
$json_object = $json_object -replace '("version": ")[^"]+', "`${1}$numeric_tag"
|
||||
if ($dryrun) {
|
||||
"[DRYRUN] would have written:`n"
|
||||
$json_object
|
||||
@ -193,8 +193,9 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
# If we are releasing a certified version we have to copy it from a different location
|
||||
if (-Not $usetestrelease) {
|
||||
# If we are releasing the MS Store version we have to copy it from a different location
|
||||
if ($usestorerelease) {
|
||||
"Using Store release becuase usestorerelease flag was set."
|
||||
$UploadBundle = dir "$PSScriptRoot/../bin/Release/Upload/*_$base_tag.0/*_$base_tag*.appx*"
|
||||
"$UploadBundle"
|
||||
if ($UploadBundle -and ($UploadBundle.count -eq 1) -and (Test-Path $UploadBundle -PathType leaf) -and ($UploadBundle -imatch '\.(?:appx|appxbundle|appxupload)$')) {
|
||||
@ -209,7 +210,7 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
"WARNING: Could not find the upload bundle, so we will use the test release..."
|
||||
}
|
||||
} else {
|
||||
"Using test release because usetestrelease flag was set."
|
||||
"Using locally signed release."
|
||||
}
|
||||
$ReleaseBundle = dir "$PSScriptRoot/../AppPackages/*_$base_tag*_Test/*_$base_tag*.appx*"
|
||||
# Check the file exists and it's of the right type
|
||||
|
@ -1,13 +1,12 @@
|
||||
## This is the WikiMed UWP release (for Store or manual installation)
|
||||
|
||||
It contains the <<date>> release of the WikiMed ZIM together with the changes detailed in the [CHANGELOG](https://github.com/kiwix/kiwix-js-windows/blob/Kiwix-JS-WikiMed/CHANGELOG.md).
|
||||
It contains the <<date>> release of the WikiMed ZIM together with the changes detailed in the [CHANGELOG](https://github.com/kiwix/kiwix-js-windows/blob/Kiwix-JS-WikiMed/CHANGELOG.md). **If you are running an older version of Windows (7/8), or Linux (Ubuntu, Debian), then you can use the [WikiMed Electron version](https://kiwix.github.io/kiwix-js-windows/wikimed-electron.html) instead.** For Windows XP or Vista, we have the [NWJS release](https://kiwix.github.io/kiwix-js-windows/kiwix-js-nwjs.html) (separate archive download required for NWJS version). If you are running **Windows 10**, then it is easiest to install this app from the Store here:
|
||||
|
||||
**Status of store app: IN CERTIFICATION**
|
||||
|
||||
https://www.microsoft.com/store/apps/9PHJSNP1CZ8J
|
||||
|
||||
If you prefer not to use the Microsoft Store or wish to test a different build, please follow the
|
||||
instructions below the screenshot.
|
||||
The Store version will keep itself up-to-date, but if you prefer not to use the Microsoft Store or wish to test a different build, please follow the instructions below the screenshot.
|
||||
|
||||

|
||||
|
||||
@ -15,7 +14,7 @@ instructions below the screenshot.
|
||||
|
||||
**Uninstall any previous installation of Kiwix JS WikiMed before you follow this procedure**.
|
||||
|
||||
Download the signed bundle [KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle) and run/launch it (depending on the browser, you may need to single-click or double-click the file or "download complete" notification). The App Installer should open and ask you whether you wish to install (it may also ask you if you wish to allow sideloading apps: if so, answer yes). If you are satisfied that the app is trusted, click Install.
|
||||
Download the signed bundle [KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle) and run/launch it (depending on the browser, you may need to single-click or double-click the file or "download complete" notification). The App Installer should open and ask you whether you wish to install (it may also ask you if you wish to allow sideloading apps: if so, answer yes). If you are satisfied that the app is trusted, click Install.
|
||||
|
||||
On slightly older versions of Windows 10, you may need to enable sideloading of apps beforehand: go to Settings / Update and security / For developers and select "Sideload apps". You may be asked to reboot.
|
||||
|
||||
@ -27,4 +26,4 @@ If the above procedures fail, or the App Installer is not available, then downlo
|
||||
|
||||
Download [KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/KiwixWebAppWikiMed_<<base_tag>>.0_AnyCPU.appxbundle) to your downloads folder, or other accessible folder, on the device. Enable Developer mode on your device (Settings / Updates and security / For developers).
|
||||
|
||||
Open the File Explorer on the phone, navigate to the downloads folder and tap the KiwixWebAppWikiMed bundle. You will be asked if you wish to install, but it then installs silently in the background. Be patient: it can take a minute or so for the WikiMed icon to appear in the All Apps list.
|
||||
Open the File Explorer on the phone, navigate to the downloads folder and tap the KiwixWebAppWikiMed bundle. You will be asked if you wish to install, but it then installs silently in the background. Be patient: it can take a minute or so for the WikiMed icon to appear in the All Apps list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user