This commit is contained in:
parent
1f964b3148
commit
a5b4a21219
6 changed files with 31 additions and 8 deletions
|
@ -43,15 +43,28 @@ jobs:
|
||||||
-p:PublishSingleFile=true \
|
-p:PublishSingleFile=true \
|
||||||
-p:PublishTrimmed=true \
|
-p:PublishTrimmed=true \
|
||||||
-o ./output_linux
|
-o ./output_linux
|
||||||
- name: Build the project (Windows x64)
|
|
||||||
|
|
||||||
|
- name: Download appimagetool
|
||||||
run: |
|
run: |
|
||||||
dotnet publish ./Cryptura/Cryptura.csproj \
|
curl -L -o appimagetool-x86_64.AppImage https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
-c Release \
|
chmod +x appimagetool-x86_64.AppImage
|
||||||
-r win-x64 \
|
|
||||||
--self-contained true \
|
- name: Build AppImage
|
||||||
-p:PublishSingleFile=true \
|
run: |
|
||||||
-p:PublishTrimmed=true \
|
mkdir -p Cryptura.AppDir/usr/bin
|
||||||
-o ./output_win
|
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
|
- name: Pack Releases into Zips
|
||||||
|
|
3
Cryptura/Assets/AppRun
Executable file
3
Cryptura/Assets/AppRun
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
HERE="$(dirname "$(readlink -f "$0")")"
|
||||||
|
exec "$HERE/usr/bin/Cryptura" "$@"
|
6
Cryptura/Assets/cryptura.desktop
Normal file
6
Cryptura/Assets/cryptura.desktop
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Cryptura
|
||||||
|
Exec=Cryptura
|
||||||
|
Icon=cryptura
|
||||||
|
Categories=Utility;
|
BIN
Cryptura/Assets/cryptura.png
Normal file
BIN
Cryptura/Assets/cryptura.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 282 KiB |
|
@ -4,6 +4,7 @@
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||||
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||||
<AssemblyVersion>1.0</AssemblyVersion>
|
<AssemblyVersion>1.0</AssemblyVersion>
|
||||||
|
|
BIN
Cryptura/icon.ico
Normal file
BIN
Cryptura/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 122 KiB |
Loading…
Add table
Reference in a new issue