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:
Jaifroid 2021-05-13 07:49:53 +01:00
parent 06feab34ca
commit 732ab8e401
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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.
![image](https://user-images.githubusercontent.com/4304337/107876789-192ba900-6ec0-11eb-8dcc-c1f7bc12b6f6.png)