diff --git a/.forgejo/workflows/dotnet.yaml b/.forgejo/workflows/dotnet.yaml index 2d15fe9..c36617d 100644 --- a/.forgejo/workflows/dotnet.yaml +++ b/.forgejo/workflows/dotnet.yaml @@ -43,15 +43,28 @@ jobs: -p:PublishSingleFile=true \ -p:PublishTrimmed=true \ -o ./output_linux - - name: Build the project (Windows x64) + + + - name: Download appimagetool run: | - dotnet publish ./Cryptura/Cryptura.csproj \ - -c Release \ - -r win-x64 \ - --self-contained true \ - -p:PublishSingleFile=true \ - -p:PublishTrimmed=true \ - -o ./output_win + curl -L -o appimagetool-x86_64.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage + chmod +x appimagetool-x86_64.AppImage + + - name: Build AppImage + run: | + mkdir -p Cryptura.AppDir/usr/bin + cp -r ./output_linux/* Cryptura.AppDir/usr/bin/ + + cp Cryptura/Assets/AppRun Cryptura.AppDir/ + cp Cryptura/Assets/cryptura.desktop Cryptura.AppDir/ + cp Cryptura/Assets/cryptura.png Cryptura.AppDir/ + + chmod +x Cryptura.AppDir/AppRun + + ./appimagetool-x86_64.AppImage Cryptura.AppDir + + mkdir -p release + mv Cryptura-x86_64.AppImage release/Cryptura_Linux_x64.AppImage - name: Pack Releases into Zips diff --git a/Cryptura/Assets/AppRun b/Cryptura/Assets/AppRun new file mode 100755 index 0000000..4fee628 --- /dev/null +++ b/Cryptura/Assets/AppRun @@ -0,0 +1,3 @@ +#!/bin/bash +HERE="$(dirname "$(readlink -f "$0")")" +exec "$HERE/usr/bin/Cryptura" "$@" \ No newline at end of file diff --git a/Cryptura/Assets/cryptura.desktop b/Cryptura/Assets/cryptura.desktop new file mode 100644 index 0000000..da9cc54 --- /dev/null +++ b/Cryptura/Assets/cryptura.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=Cryptura +Exec=Cryptura +Icon=cryptura +Categories=Utility; \ No newline at end of file diff --git a/Cryptura/Assets/cryptura.png b/Cryptura/Assets/cryptura.png new file mode 100644 index 0000000..c2dae5d Binary files /dev/null and b/Cryptura/Assets/cryptura.png differ diff --git a/Cryptura/Cryptura.csproj b/Cryptura/Cryptura.csproj index cc14301..ff12790 100644 --- a/Cryptura/Cryptura.csproj +++ b/Cryptura/Cryptura.csproj @@ -4,6 +4,7 @@ net9.0 enable true + icon.ico app.manifest true 1.0 diff --git a/Cryptura/icon.ico b/Cryptura/icon.ico new file mode 100644 index 0000000..fddbbf8 Binary files /dev/null and b/Cryptura/icon.ico differ