mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-11 05:08:43 -04:00
Add ability to update permalink to script
Former-commit-id: 752ec22176b9c74cd0fa95784477c59683bf6a6b [formerly 9bed75273bee707947a66971dee577160346b115] [formerly 3c1796b8239ce58f591bb7890d592a7f728b879c] [formerly 1319f6a497c681cbcb2e476d24f58f3dd1865d4b [formerly 1ff41f68f4a1d5b937a7645722b10092e0fa870d [formerly 7a52b6faadc0bf08b5e0ea49dd1c45cc59ae41bc]]] Former-commit-id: 620921074da0ec1f473a242e2f3eac069bbd9aef [formerly 8e7f60bd21279200d78727466d4fa31a68f46378 [formerly e3617014cab99151e43de1301d0e17856de28f81]] Former-commit-id: a4f38a97a8d74a757d265d9206a09e58bbddb822 [formerly 908ffd32a5ed674a9d29e2c21a6231a6719b06c0] Former-commit-id: 2757a9bbbafded418dc7e9feef42b81ffb4ad026
This commit is contained in:
parent
e215a6aeee
commit
1f9901b844
@ -162,6 +162,11 @@ if ($dryrun -or $release.assets_url -imatch '^https:') {
|
||||
return
|
||||
}
|
||||
}
|
||||
"Creating permalink..."
|
||||
$permalink = Get-Content -Raw "$PSScriptRoot/../$text_tag-uwp.html"
|
||||
$permalink = $permalink -replace 'v[\d.EN]+[^"'']*', $tag_name
|
||||
if (-Not $dryrun) { Set-Content "$PSScriptRoot/../$text_tag-uwp.html" $permalink }
|
||||
else { "`n[DRYRUN] would have written:`n$permalink`n" }
|
||||
"Cleaning up..."
|
||||
if (-Not $dryrun) { del $compressed_archive }
|
||||
"`nDone."
|
||||
|
Loading…
x
Reference in New Issue
Block a user