mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 11:48:26 -04:00
Correct some misnamed file renames
This commit is contained in:
parent
07aa021bfc
commit
a9f0bab20f
@ -152,7 +152,7 @@ if (-not $githubonly) {
|
||||
# Convert back appname to hyphens
|
||||
$filename = $filename -replace 'kiwix_js_(electron|windows)', 'kiwix-js-$1'
|
||||
# Fix Windows Portable version so that it is clear it is portable for Windows
|
||||
$filename = $filename -replace 'electron(?!_(setup|win7|web))(.+\.exe)$', 'electron_win_portable$1'
|
||||
$filename = $filename -replace 'electron(?!_(?:setup|win7|web))(.+\.exe)$', 'electron_win_portable$1'
|
||||
# Fix Windows Setup version so that it is clear it is a Windows executable
|
||||
$filename = $filename -replace 'electron_setup', 'electron_win_setup'
|
||||
# Fix Windows Web Setup version so that it is clear it is a Windows executable
|
||||
|
@ -31,7 +31,7 @@ for file in ./dist/bld/Electron/* ; do
|
||||
filename=$(sed -E 's/\.(i686|x86)/_\1/' <<<"$filename")
|
||||
# Swap order of architecture and release number
|
||||
filename=$(sed -E 's/(electron)(.+)(_(i[36]86|x86)[^.]*)/\1\3\2/' <<<"$filename")
|
||||
if [[ $filename =~ \.appimage && (! $filename =~ i386) ]]; then
|
||||
if [[ $filename =~ \.appimage && (! $filename =~ i386 )(! $filename =~ arm64) ]]; then
|
||||
filename=$(sed -E 's/(electron)(.)/\1_x86-64\2/' <<<"$filename")
|
||||
fi
|
||||
if [[ "qq${CRON_LAUNCHED}" != "qq" ]]; then
|
||||
@ -40,6 +40,7 @@ for file in ./dist/bld/Electron/* ; do
|
||||
# Add date to filename
|
||||
filename=$(sed -E "s/[^_]+(\.[^.]+)$/$CURRENT_DATE\1/" <<<"$filename")
|
||||
fi
|
||||
echo "Renaming $file to $filename"
|
||||
# Put it all together
|
||||
renamed_file="$directory$filename"
|
||||
if [[ "$file" != "$renamed_file" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user