Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 8ee8b216 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

A working AppImage distribution

parent 13b2773f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -4,3 +4,4 @@ dist
*.log
*.tgz
*.AppImage
#!/bin/sh
YARN=${YARN:-yarnpkg}
[ ! -d dist ] && mkdir dist
# DL the appimagetool
URL_APPIMAGETOOL="https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-`arch`.AppImage"
APPIMAGETOOL="dist/appimagetool-`arch`.AppImage"
WGET=`which wget 2>/dev/null`
[ $? -ne 0 ] && exit 1
echo "wget: $WGET"
[ -e "$APPIMAGETOOL" ] || { wget "$URL_APPIMAGETOOL" -O "$APPIMAGETOOL" || exit 1; }
chmod +x "$APPIMAGETOOL"
# Build initial AppImage
rm -rf dist/squashfs-root dist/Amadeus dist/[aA]madeus-*.AppImage dist/*.fs
$YARN dist
[ ! -f dist/lektord-`arch`.AppImage ] && { cp "$(which lektord-`arch`.AppImage)" dist/ || exit 1; }
# Extract AppImages
(cd dist && ./lektord-`arch`.AppImage --appimage-extract && mv squashfs-root lektord.fs)
(cd dist && ./amadeus-?.?.?.AppImage --appimage-extract && mv squashfs-root amadeus.fs)
cp -rf dist/amadeus.fs/* dist/lektord.fs/
rm -rf dist/amadeus.fs
mv dist/lektord.fs dist/Amadeus
# Clean and setup
(cd dist/Amadeus/usr/ && ln -s bin sbin)
(cd dist/Amadeus && rm lektor* AppRun.wrapped)
# Package
$APPIMAGETOOL dist/Amadeus
......@@ -13,13 +13,8 @@
"license": "ISC",
"scripts": {
"start": "electron .",
"pack": "electron-builder",
"linux-dist": "yarn pack && yarn linux-extract-clean && yarn linux-extract-lektor && yarn linux-extract-amadeus && yarn linux-extract-links",
"linux-extract-links": "cd dist/squashfs-root/usr && ln -s bin sbin; cd ../../..",
"linux-extract-clean": "cd dist && rm -rf squashfs-root; cd ..",
"linux-extract-lektor": "cd dist && ./lektord-`arch`.AppImage --appimage-extract; cd ..",
"linux-extract-amadeus": "cd dist && ./amadeus*.AppImage --appimage-extract; cd .."
"dist": "electron-builder",
"linux-dist": "./appimage.sh"
},
"dependencies": {
"ejs": "^3.1.5",
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter