Skip to content

Instantly share code, notes, and snippets.

@lontivero
Created August 3, 2020 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lontivero/3b4183e635c052c8ffcfc253c239d5e4 to your computer and use it in GitHub Desktop.
Save lontivero/3b4183e635c052c8ffcfc253c239d5e4 to your computer and use it in GitHub Desktop.
Wasabi AppImage bundle
#!/bin/sh
set -e
rm -rf .AppDir
mkdir -p ./AppDir/usr/bin
dotnet publish \
--configuration Release
--force \
--output ./AppDir/usr/bin \
--self-contained true \
--runtime "linux-x64" \
-fl /p:VersionPrefix=1.1.2 --disable-parallel --no-cache /p:DebugType=none /p:DebugSymbols=false /p:ErrorReport=none /p:DocumentationFile=\"\" /p:Deterministic=True
APPRUN_SCRIPT=AppRun
cd AppDir
cat <<'EOT' > $APPRUN_SCRIPT
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export PATH="${HERE}"/usr/bin/:"${PATH}"
EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1)
exec "${EXEC}" $@
EOT
cat <<EOT > ./WasabiWallet.desktop
[Desktop Entry]
Type=Application
Name=Wasabi Wallet
Comment=Bitcoi wallet,privacy oriented .....
Icon=WasabiLogo48
Exec=WalletWasabi.Gui
Path=./
Terminal=true
Categories=Development;
EOT
cp ../Assets/WasabiLogo48.png ./WasabiLogo48.png
cd ..
wget "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
echo Execure the following command...
echo chmod u+x appimagetool-x86_64.AppImage
echo chmod u+x AppDir/AppRun
echo ./appimagetool-x86_64.AppImage AppDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment