Created
August 3, 2020 05:03
-
-
Save lontivero/3b4183e635c052c8ffcfc253c239d5e4 to your computer and use it in GitHub Desktop.
Wasabi AppImage bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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