0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 14:12:59 +03:00

repack only generates asar now

This commit is contained in:
Andrey Onishchenko 2024-01-29 23:14:37 +03:00
parent 7cae5485c3
commit a558dcf73b

View File

@ -118,20 +118,4 @@ rm -rf ./app
echo "Done"
cp "./LICENSE.md" "./out/LICENSE.md"
cp "./templates/desktop" "./out/yandexmusic.desktop"
#sha256 hash
asar_hash=$(sha256sum "./out/yandexmusic.asar" | cut -d ' ' -f 1)
desktop_hash=$(sha256sum "./out/yandexmusic.desktop" | cut -d ' ' -f 1)
echo "asar hash: $asar_hash"
echo "desktop hash: $desktop_hash"
echo "Building PKGBUILD"
cp "./templates/PKGBUILD" "./out/PKGBUILD"
sed -i "s/%version%/$version/g" "./out/PKGBUILD"
sed -i "s/%asar_hash%/$asar_hash/g" "./out/PKGBUILD"
sed -i "s/%desktop_hash%/$desktop_hash/g" "./out/PKGBUILD"
echo "Done"
cp "./templates/desktop" "./out/yandexmusic.desktop"