Skip to content

Commit 3781de1

Browse files
committed
fix: utilise sharun avec variables d'environnement comme quick-sharun
- Change de 'sharun-aio lib4bin --hard-links --dst-dir' vers 'sharun-aio l' - Ajoute les variables d'environnement DST_DIR, HARD_LINKS, etc. - Suit la même approche que quick-sharun pour la compatibilité
1 parent 8c04f45 commit 3781de1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

scripts/make-appimage.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,23 @@ export ADD_HOOKS="self-updater.bg.hook:fix-namespaces.hook"
1010
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
1111

1212
# Télécharger sharun
13+
echo "Téléchargement de sharun..."
1314
curl -s https://github.com/VHSgunzo/sharun/releases/latest/download/sharun-x86_64-aio -o /tmp/sharun-aio
1415
chmod +x /tmp/sharun-aio
15-
# Utiliser sharun lib4bin pour compatibilité musl sans déploiement de bibliothèques
16-
/tmp/sharun-aio lib4bin --hard-links --dst-dir ./AppDir ./AppDir/bin/am-gui
16+
echo "Sharun téléchargé, exécution de lib4bin..."
17+
18+
# Configurer les variables d'environnement pour sharun (comme quick-sharun)
19+
export DST_DIR="./AppDir"
20+
export GEN_LIB_PATH=1
21+
export HARD_LINKS=1
22+
export WITH_HOOKS=1
23+
export STRACE_MODE=${STRACE_MODE:-1}
24+
export WRAPPE_CLVL=${WRAPPE_CLVL:-15}
25+
export VERBOSE=1
26+
27+
# Utiliser sharun l (lib4bin) pour compatibilité musl sans déploiement de bibliothèques
28+
/tmp/sharun-aio l ./AppDir/bin/am-gui
29+
echo "Lib4bin terminé"
1730

1831
# Additional changes can be done in between here
1932

0 commit comments

Comments
 (0)