Skip to content

Commit e23bb10

Browse files
authored
simplify even more (#9)
1 parent a5bb7ce commit e23bb10

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

azahar-appimage.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ else
3535
fi
3636
echo "$VERSION" > ~/version
3737

38-
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
39-
export OUTNAME=Azahar-Enhanced-"$VERSION"-anylinux-"$ARCH".AppImage
40-
4138
# BUILD AZAAHR
4239
(
4340
cd ./azahar
@@ -69,22 +66,26 @@ export OUTNAME=Azahar-Enhanced-"$VERSION"-anylinux-"$ARCH".AppImage
6966
)
7067
rm -rf ./azahar
7168

72-
# PREPARE APPDIR
73-
mkdir ./AppDir
74-
cp -v /usr/share/applications/org.azahar_emu.Azahar.desktop ./AppDir/azahar.desktop
75-
cp -v /usr/share/icons/hicolor/512x512/apps/org.azahar_emu.Azahar.png ./AppDir/azahar.png
76-
cp -v /usr/share/icons/hicolor/512x512/apps/org.azahar_emu.Azahar.png ./AppDir/.DirIcon
77-
if [ "$DEVEL" = 'true' ]; then
78-
sed -i 's|Name=Azahar|Name=Azahar nightly|' ./AppDir/azahar.desktop
79-
UPINFO="$(echo "$UPINFO" | sed 's|latest|nightly|')"
80-
fi
69+
# Deploy AppImage
70+
export ADD_HOOKS="self-updater.bg.hook"
71+
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
72+
export OUTNAME=Azahar-Enhanced-"$VERSION"-anylinux-"$ARCH".AppImage
73+
export DESKTOP=/usr/share/applications/org.azahar_emu.Azahar.desktop
74+
export ICON=/usr/share/icons/hicolor/512x512/apps/org.azahar_emu.Azahar.png
75+
export DEPLOY_OPENGL=1
76+
export DEPLOY_VULKAN=1
77+
export DEPLOY_PIPEWIRE=1
8178

8279
# ADD LIBRARIES
8380
wget --retry-connrefused --tries=30 "$SHARUN" -O ./quick-sharun
8481
chmod +x ./quick-sharun
85-
DEPLOY_OPENGL=1 DEPLOY_VULKAN=1 DEPLOY_PIPEWIRE=1 \
86-
./quick-sharun /usr/bin/azahar* /usr/lib/libgamemode.so*
87-
ln ./AppDir/sharun ./AppDir/AppRun
82+
./quick-sharun /usr/bin/azahar* /usr/lib/libgamemode.so*
83+
84+
# differentiate betwee dev and stable builds
85+
if [ "$DEVEL" = 'true' ]; then
86+
sed -i 's|Name=Azahar|Name=Azahar nightly|' ./AppDir/*.desktop
87+
UPINFO="$(echo "$UPINFO" | sed 's|latest|nightly|')"
88+
fi
8889

8990
# allow using host vk for aarch64 given the sad situation
9091
if [ "$ARCH" = 'aarch64' ]; then

0 commit comments

Comments
 (0)