mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 20:59:03 -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 (
|
param (
|
||||||
[string]$tag_name = "",
|
[string]$tag_name = "",
|
||||||
[switch]$dryrun = $false,
|
[switch]$dryrun = $false,
|
||||||
[switch]$usetestrelease = $false,
|
[switch]$usestorerelease = $false,
|
||||||
[switch]$draftonly = $false
|
[switch]$draftonly = $false
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
|||||||
"The draft release details were successfully created.`n"
|
"The draft release details were successfully created.`n"
|
||||||
"Updating release version in package.json"
|
"Updating release version in package.json"
|
||||||
$json_object = Get-Content -Raw "$PSScriptRoot/../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) {
|
if ($dryrun) {
|
||||||
"[DRYRUN] would have written:`n"
|
"[DRYRUN] would have written:`n"
|
||||||
$json_object
|
$json_object
|
||||||
@ -193,8 +193,9 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
# If we are releasing a certified version we have to copy it from a different location
|
# If we are releasing the MS Store version we have to copy it from a different location
|
||||||
if (-Not $usetestrelease) {
|
if ($usestorerelease) {
|
||||||
|
"Using Store release becuase usestorerelease flag was set."
|
||||||
$UploadBundle = dir "$PSScriptRoot/../bin/Release/Upload/*_$base_tag.0/*_$base_tag*.appx*"
|
$UploadBundle = dir "$PSScriptRoot/../bin/Release/Upload/*_$base_tag.0/*_$base_tag*.appx*"
|
||||||
"$UploadBundle"
|
"$UploadBundle"
|
||||||
if ($UploadBundle -and ($UploadBundle.count -eq 1) -and (Test-Path $UploadBundle -PathType leaf) -and ($UploadBundle -imatch '\.(?:appx|appxbundle|appxupload)$')) {
|
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..."
|
"WARNING: Could not find the upload bundle, so we will use the test release..."
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
"Using test release because usetestrelease flag was set."
|
"Using locally signed release."
|
||||||
}
|
}
|
||||||
$ReleaseBundle = dir "$PSScriptRoot/../AppPackages/*_$base_tag*_Test/*_$base_tag*.appx*"
|
$ReleaseBundle = dir "$PSScriptRoot/../AppPackages/*_$base_tag*_Test/*_$base_tag*.appx*"
|
||||||
# Check the file exists and it's of the right type
|
# 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)
|
## 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**
|
**Status of store app: IN CERTIFICATION**
|
||||||
|
|
||||||
https://www.microsoft.com/store/apps/9PHJSNP1CZ8J
|
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
|
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.
|
||||||
instructions below the screenshot.
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user