From c3b25b51bd60055bcad34094a577d5d84565c4f7 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Wed, 20 Jan 2021 21:22:56 +0000 Subject: [PATCH] Update permalink Former-commit-id: cebafcee4161c46cf6903731e638a067da2f7903 [formerly c77be72d84b790dfd7788876f12b78693725a4b0] [formerly fc9a9eee613775a4e2df26386105bc788f325a72] [formerly 7812f7579060ee30b169fe4194282ceed0775c36 [formerly f20699736de5d93840e9c3c02bc45a955015a98f [formerly 1429c0553c03833cac4848d8c7014615772b5517]]] Former-commit-id: 3e3c8cbc7075238f93dc9cd2f6e729fa987fef98 [formerly 96ea04c1b8940b8645b297cd05863c7fcfb739f0 [formerly 3c34fc16177f92c5bab9ff961aed47e8ece09744]] Former-commit-id: 5771ef2bb945cff617ecbe57cf6b7dced033c6e5 [formerly 354a7b1d4f27224d9c0a8e7c72338131cdd98a8e] Former-commit-id: 25d9b429e2a25f61a3c47d8f9cd116effb30ca42 --- kiwix-js-nwjs.html | 8 ++++---- scripts/Create-DraftRelease.ps1 | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/kiwix-js-nwjs.html b/kiwix-js-nwjs.html index 5e12c350..42bb3a93 100644 --- a/kiwix-js-nwjs.html +++ b/kiwix-js-nwjs.html @@ -4,17 +4,17 @@ Redirecting to latest Kiwix JS Windows NWJS release + content="2; URL=https://github.com/kiwix/kiwix-js-windows/releases/tag/v1.1.4N">

Redirecting to latest Kiwix JS Windows NWJS release...

If your browser does not automatically redirect, please click on:

-

+

Kiwix JS Windows NWJS: releases

- Kiwix JS Logo + Kiwix JS Logo
- \ No newline at end of file + diff --git a/scripts/Create-DraftRelease.ps1 b/scripts/Create-DraftRelease.ps1 index 0f502099..569db4b9 100644 --- a/scripts/Create-DraftRelease.ps1 +++ b/scripts/Create-DraftRelease.ps1 @@ -103,9 +103,10 @@ if ($dryrun -or $release.assets_url -imatch '^https:') { $NWJSAssets = @() $NWJSAssets = {$NWJSAssets}.Invoke() foreach ($stub in $stubs) { - $NWJSAsset = "$base_dir/kiwix-js-windows-$stub.zip" + $NWJSAsset = "$base_dir/kiwix_js_windows-$stub.zip" $NWJSAssets.Add($NWJSAsset) if (-Not (Test-Path $NWJSAsset -PathType Leaf)) { $found = $false } + if (-Not $found) { "Unable to locate $NWJSAsset..." } } if (-Not $found) { "WARNING: One or more NWJS build(s) could not be found." @@ -138,7 +139,7 @@ if ($dryrun -or $release.assets_url -imatch '^https:') { if (-Not $dryrun) { "$AddAppPackage", "$cert_file" | Compress-Archive -DestinationPath $compressed_archive -Force } } # Check the compressed file exists - if ($dryrun -or (Test-Path $compressed_archive -PathType leaf)) { + if ($dryrun -or $found -or (Test-Path $compressed_archive -PathType leaf)) { "Compression successful`n" } else { "There was an error compressing assets." @@ -197,7 +198,7 @@ if ($dryrun -or $release.assets_url -imatch '^https:') { if (-Not $dryrun) { Set-Content $permalinkFile $permalink } else { "`n[DRYRUN] would have written:`n$permalink`n" } "Cleaning up..." - if (-Not $dryrun) { del $compressed_archive } + if ((-Not $dryrun) -and $compressed_archive ) { del $compressed_archive } "`nDone." } else { "There was an error setting up the release!"