diff --git a/scripts/Create-DraftRelease.ps1 b/scripts/Create-DraftRelease.ps1 index f04b2076..cab13d46 100644 --- a/scripts/Create-DraftRelease.ps1 +++ b/scripts/Create-DraftRelease.ps1 @@ -1,7 +1,8 @@ param ( [string]$tag_name = "", [switch]$dryrun = $false, - [switch]$usetestrelease = $false + [switch]$usetestrelease = $false, + [switch]$draftonly = $false ) # Provide parameters @@ -53,7 +54,7 @@ if ($base_tag -match '[EN]$') { $title_flavour = 'NWJS' $branch = 'nwjs-en-top' } - $release_title = $release_title -replace '([^\s]+)\sUWP$', ("$title_flavour Edition (Window/Linux) " + '$1') + $release_title = $release_title -replace '([^\s]+)\sUWP$', ("$title_flavour Edition (Windows/Linux) " + '$1') if ($flavour -eq '_N') { $release_title = $release_title -replace 'Edition\s(for\s)', '$1XP/Vista/' } } "Text tag: $text_tag" @@ -103,6 +104,11 @@ if ($dryrun -or $release.assets_url -imatch '^https:') { } else { Set-Content "$PSScriptRoot/../package.json" $json_object } + if ($draftonly) { + "`nDraft only switch was set, so we will not upload assets. Please do so manually." + "Done." + return + } "Searching for assets..." if ($flavour -eq '_E') { $base_dir = "$PSScriptRoot/../bld/electron/" diff --git a/scripts/Kiwix_JS_WikiMed_E_Release_Body.md b/scripts/Kiwix_JS_WikiMed_E_Release_Body.md index a2b0d4c5..4275fd25 100644 --- a/scripts/Kiwix_JS_WikiMed_E_Release_Body.md +++ b/scripts/Kiwix_JS_WikiMed_E_Release_Body.md @@ -21,7 +21,7 @@ If you intend to use this app with other archives than WikiMed, then download th * For the Windows Portable build, unzip the contents of the [Kiwix JS WikiMed <>.zip archive](https://github.com/kiwix/kiwix-js-windows/releases/download/v<>-WikiMed/Kiwix.JS.WikiMed.<>.zip) to any folder, or to a flash drive / thumb drive, and double click on `Start Kiwix JS WikiMed` or `Start Kiwix JS WikiMed via batch file.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, uninstall it from "Add or Remove Programs". * For the Linux builds (which are both portable), 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`; -* 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-<>-E-i386.AppImage](https://github.com/kiwix/kiwix-js-windows/releases/download/v<>-WikiMed/Kiwix.JS.WikiMed-<>-E-i386.AppImage) 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 <>-E.exe](https://github.com/kiwix/kiwix-js-windows/releases/download/v<>-WikiMed/Kiwix.JS.WikiMed.Setup.<>-E.exe) which is digitally signed. ### Release Notes