mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-10 12:53:54 -04:00
Draft release updates
Former-commit-id: 57d0d2b77341401e8a1ca024be8ba396378dac05 [formerly b8a17389fca75143bad0beec0f632fc311502063 [formerly 13601be721094fb635a025d1ffe2b52b62a38d6f]] Former-commit-id: 1950be1c9860ee9675573ce62dcabb97e844ce52 Former-commit-id: a12f77cd9695344b36b0d3fafe9bc99c43083cd8
This commit is contained in:
parent
10c883e868
commit
ea21abd36f
@ -41,7 +41,9 @@ if ($tag_name -eq "") {
|
|||||||
"Initiating dry run..."
|
"Initiating dry run..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (-Not ($buildonly -or $dryrun -or $updatewinget)) {
|
if ($draftonly) {
|
||||||
|
"Creating a draft release only with no assets attached."
|
||||||
|
} elseif (-Not ($buildonly -or $dryrun -or $updatewinget)) {
|
||||||
$buildonly_check = Read-Host "Do you wish to Build only, or build and Release? [B/R]"
|
$buildonly_check = Read-Host "Do you wish to Build only, or build and Release? [B/R]"
|
||||||
$buildonly = -Not ( $buildonly_check -imatch 'r' )
|
$buildonly = -Not ( $buildonly_check -imatch 'r' )
|
||||||
If ($buildonly) {
|
If ($buildonly) {
|
||||||
@ -113,12 +115,19 @@ $release_body = $release_body -replace '<<numeric_tag>>', "$numeric_tag"
|
|||||||
$release_body = $release_body -replace '<<zim>>', "$zim"
|
$release_body = $release_body -replace '<<zim>>', "$zim"
|
||||||
$release_body = $release_body -replace '<<date>>', "$date"
|
$release_body = $release_body -replace '<<date>>', "$date"
|
||||||
# Set up release_params object - for API see https://docs.github.com/en/rest/reference/repos#releases
|
# Set up release_params object - for API see https://docs.github.com/en/rest/reference/repos#releases
|
||||||
|
$release_body_json = @{
|
||||||
|
'tag_name' = "$tag_name"
|
||||||
|
'target_commitish' = $branch
|
||||||
|
'name' = $release_title
|
||||||
|
'draft' = $true
|
||||||
|
'body' = $release_body
|
||||||
|
} | ConvertTo-Json
|
||||||
$release_params = @{
|
$release_params = @{
|
||||||
Uri = $release_uri
|
Uri = $release_uri
|
||||||
Method = 'POST'
|
Method = 'POST'
|
||||||
Headers = @{
|
Headers = @{
|
||||||
'Authorization' = "token $github_token"
|
'Authorization' = "token $github_token"
|
||||||
'Accept' = 'application/vnd.github.everest-preview+json'
|
'Accept' = 'application/vnd.github.v3+json'
|
||||||
}
|
}
|
||||||
Body = @{
|
Body = @{
|
||||||
'tag_name' = "$tag_name"
|
'tag_name' = "$tag_name"
|
||||||
@ -531,6 +540,7 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
|
|||||||
"The server returned:"
|
"The server returned:"
|
||||||
echo $release
|
echo $release
|
||||||
} else {
|
} else {
|
||||||
"The server did not respond."
|
"The server did not respond or could not process the command correctly."
|
||||||
|
"$release_body_json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ There is no installation required for the Portable versions. NONE of these build
|
|||||||
|
|
||||||
* For the Windows Portable build, unzip the contents of the [Kiwix JS WikiMed <<base_tag>>.zip archive](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/Kiwix.JS.WikiMed.<<base_tag>>.zip) archive to any folder, or to a flash drive / thumb drive, and double click on `Start Kiwix JS WikiMed` or `Start Kiwix JS WikiMed.bat`, or open the `kiwix-js-windows-win32-ia32` folder and double click on `kiwix-js-windows.exe`.
|
* For the Windows Portable build, unzip the contents of the [Kiwix JS WikiMed <<base_tag>>.zip archive](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/Kiwix.JS.WikiMed.<<base_tag>>.zip) archive to any folder, or to a flash drive / thumb drive, and double click on `Start Kiwix JS WikiMed` or `Start Kiwix JS WikiMed.bat`, or open the `kiwix-js-windows-win32-ia32` folder and double click on `kiwix-js-windows.exe`.
|
||||||
* For the Windows Setup (installable) build, simply download and launch. It will install itself, together with a shortcut in your shortcut menu, and run. When you want to update the app, just install a new version over it (it will uninstall the old one for you).
|
* For the Windows Setup (installable) build, simply download and launch. It will install itself, together with a shortcut in your shortcut menu, and run. When you want to update the app, just install a new version over it (it will uninstall the old one for you).
|
||||||
* For the Linux potable builds, download and save the correct AppImage file anywhere (e.g. your Desktop), and double-click it. If it doesn't work, open Terminal and run `chmod a+x Kiwix.JS.WikiMed*.AppImage` and then `./Kiwix.JS.WikiMed*.AppImage`. On **Debian**, you will probably need to add the `--no-sandbox` switch to the command like this `./Kiwix.JS.WikiMed*.AppImage --no-sandbox` (see https://github.com/electron/electron/issues/17972#issuecomment-516957971). On **OpenSUSE**, you may need to use these commandline switches instead: `./Kiwix.JS.WikiMed*.AppImage --use-gl=disabled --disable-gpu-compositing`.¹
|
* For the Linux potable builds, download and save the correct AppImage file anywhere (e.g. your Desktop), and double-click it. If it doesn’t work, open Terminal and run `chmod a+x Kiwix.JS.WikiMed*.AppImage` and then `./Kiwix.JS.WikiMed*.AppImage`. On **Debian**, you will probably need to add the `--no-sandbox` switch to the command like this `./Kiwix.JS.WikiMed*.AppImage --no-sandbox` (see https://github.com/electron/electron/issues/17972#issuecomment-516957971). On **OpenSUSE**, you may need to use these commandline switches instead: `./Kiwix.JS.WikiMed*.AppImage --use-gl=disabled --disable-gpu-compositing`.¹
|
||||||
* For the Linux installable builds, download the correct `.deb` package and double-click to see if your graphical package manager can install it. If not, open a terminal, `cd` to the directory containing the package, and type `sudo apt install ./kiwix-js-wikimed*.deb`. Once installed, on **Debian**, you may have to run the app by opening terminal and typing `kiwix-js-wikimed --no-sandbox`. On **Ubuntu**, you should be able to run it from its installed icon. When you want to update, just install the new version, and it will install over the old version. To install on **OpenSUSE**, it may be easiest to extract the files from the AppImage instead of using the Deb package. The executable is `kiwix-js-wikimed` and you may need to add the commandline switches `--use-gl=disabled --disable-gpu-compositing`.¹
|
* For the Linux installable builds, download the correct `.deb` package and double-click to see if your graphical package manager can install it. If not, open a terminal, `cd` to the directory containing the package, and type `sudo apt install ./kiwix-js-wikimed*.deb`. Once installed, on **Debian**, you may have to run the app by opening terminal and typing `kiwix-js-wikimed --no-sandbox`. On **Ubuntu**, you should be able to run it from its installed icon. When you want to update, just install the new version, and it will install over the old version. To install on **OpenSUSE**, it may be easiest to extract the files from the AppImage instead of using the Deb package. The executable is `kiwix-js-wikimed` and you may need to add the commandline switches `--use-gl=disabled --disable-gpu-compositing`.¹
|
||||||
* Windows: **Because the portable archive may not be commonly downloaded, you may face Windows SmartScreen issues** on first launch. Follow instructions to "Run anyway" if you trust this site. If you prefer, use the installable version [Kiwix JS WikiMed Setup <<numeric_tag>>-E.exe](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/Kiwix.JS.WikiMed.Setup.<<numeric_tag>>-E.exe) which is digitally signed.
|
* Windows: **Because the portable archive may not be commonly downloaded, you may face Windows SmartScreen issues** on first launch. Follow instructions to "Run anyway" if you trust this site. If you prefer, use the installable version [Kiwix JS WikiMed Setup <<numeric_tag>>-E.exe](https://github.com/kiwix/kiwix-js-windows/releases/download/v<<base_tag>>-WikiMed/Kiwix.JS.WikiMed.Setup.<<numeric_tag>>-E.exe) which is digitally signed.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user