mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-09 12:19:46 -04:00
Correct script logic for release flavours
Former-commit-id: ce3e45b44ddadcb907b4a1408ef9c8bdc71bb6c3 [formerly 93eae7238db1804f29b8da6e5814f90946f365e1 [formerly 2a10c51773a19daa6982419ff35f64f58974b520]] Former-commit-id: d93bc2ecdad0cd8544937021e86fb59d2def4cb4 Former-commit-id: 7b18e0f51c169635ac69a9c2272820f6f5444dae
This commit is contained in:
parent
60db29690f
commit
0fc3138f55
@ -152,7 +152,8 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
# ZIP the remaining assets
|
||||
"Compressing remaining assets..."
|
||||
$compressed_assets_dir = $ReleaseBundle -replace '[^/\\]+$', ''
|
||||
$compressed_archive = $compressed_assets_dir + "PowerShell.Installation.Script.KiwixWebAppWikiMed_$base_tag.0_Test.zip"
|
||||
$compressed_assets_base = $compressed_assets_dir -replace '^.*[\\/]([^\\/]+)[\\/]', '$1'
|
||||
$compressed_archive = $compressed_assets_dir + "PowerShell.Installation.Script.$compressed_assets_base.zip"
|
||||
$AddAppPackage = $compressed_assets_dir + "Add-AppDevPackage*.*"
|
||||
$cert_file = $ReleaseBundle -replace '\.[^.]+$', '.cer'
|
||||
"Compressing: $AddAppPackage, $cert_file"
|
||||
@ -211,7 +212,10 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
}
|
||||
"Creating permalink..."
|
||||
$permalinkFile = "$PSScriptRoot/../kiwix-js-uwp.html"
|
||||
if ($tag_name -imatch 'WikiMed') { $permalinkFile = $permalinkFile -replace 'kiwix-js-uwp', 'wikimed-uwp' }
|
||||
if ($tag_name -imatch 'Wikivoyage') { $permalinkFile = $permalinkFile -replace 'kiwix-js-uwp', 'wikivoyage-uwp' }
|
||||
if ($flavour -eq '_N') { $permalinkFile = $permalinkFile -replace 'uwp', 'nwjs' }
|
||||
if ($flavour -eq '_E') { $permalinkFile = $permalinkFile -replace 'uwp', 'electron' }
|
||||
$permalink = Get-Content -Raw $permalinkFile
|
||||
$permalink = $permalink -replace 'v[\d.EN]{5,}[^"'']*', $tag_name
|
||||
"Looking for: $permalinkFile"
|
||||
|
Loading…
x
Reference in New Issue
Block a user