Add architecture to appimage files

Former-commit-id: 5ba51ac7bdec0258d553c5beffad66b95b2f4495 [formerly 58f2344abfd392896fad0a037cb7c637b2e5a09b] [formerly 225466feb459cda8b1c55cf63e7e1af97546944b] [formerly 2a0b90777ef745f52ab72d07179c2a24a4f9aec8 [formerly 7fe8255524270352be2b25e71461d8dec2b3fa12 [formerly 760f9e95b2f6e0e33ac5501502f1867021c784c4]]]
Former-commit-id: 068a8f21a9e7303a72d7e4e2d9739879875909e5 [formerly 67dad826555ee047787f6fab34cc2538e2e249de [formerly 0da43c15353e5df7c1ac7d3147e8c396d22ad004]]
Former-commit-id: 0860feda07ad95d4945349adafab9da4ae6ba2ff [formerly f60ee10b50ae1ee0fa7c8935739fe0610d544a83]
Former-commit-id: 32f39afe3519630d17477c84d6eba60f257a6005
This commit is contained in:
Jaifroid 2022-03-20 20:25:15 +00:00
parent 04a8c63656
commit cb52968130

View File

@ -31,6 +31,9 @@ for file in ./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
filename=$(sed -E 's/(electron)(.)/\1_x86-64\2/' <<<"$filename")
fi
if [[ "qq${CRON_LAUNCHED}" != "qq" ]]; then
# Delete release number other than SHA if there is a SHA
filename=$(sed -E 's/_[0-9.]+([-_.])/\1/' <<<"$filename")