mirror of
https://github.com/tonytins/s2pk.git
synced 2025-05-19 07:23:17 -04:00
Future AppImage support
This commit is contained in:
parent
2f1895c42d
commit
6f25ab9bb1
4 changed files with 34 additions and 1 deletions
7
AppDir/s2pk.desktop
Normal file
7
AppDir/s2pk.desktop
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=s2pk
|
||||
Exec=s2pk
|
||||
Icon=s2pk
|
||||
Type=Application
|
||||
Categories=Utility;
|
||||
Terminal=true
|
9
Makefile
9
Makefile
|
@ -5,8 +5,9 @@ CONFIGURATION = Release
|
|||
RUNTIME_LINUX = linux-x64
|
||||
RUNTIME_MAC = osx-x64
|
||||
OUTPUT_DIR = ./dist
|
||||
APPIMAGE_DIR = ./AppDir
|
||||
|
||||
.PHONY: all clean build-linux build-mac package-linux package-mac
|
||||
.PHONY: all clean build-linux build-mac build-appimage package-linux package-mac package-appimage
|
||||
|
||||
all: build-linux build-mac package-linux package-mac
|
||||
|
||||
|
@ -16,6 +17,9 @@ clean:
|
|||
build-linux:
|
||||
dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_LINUX) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-linux
|
||||
|
||||
build-appimage:
|
||||
dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_LINUX) --self-contained true /p:PublishSingleFile=true -o $(APPIMAGE_DIR)/usr/bin
|
||||
|
||||
build-mac:
|
||||
dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_MAC) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-mac
|
||||
|
||||
|
@ -24,3 +28,6 @@ package-linux:
|
|||
|
||||
package-mac:
|
||||
tar -czvf $(OUTPUT_DIR)/$(APP_NAME)-mac.tar.gz -C $(OUTPUT_DIR)/$(APP_NAME)-mac .
|
||||
|
||||
package-appimage:
|
||||
appimage-builder
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<Authors>Tony Bark</Authors>
|
||||
<PackAsTool>true</PackAsTool>
|
||||
<AssemblyName>s2pk</AssemblyName>
|
||||
<ToolCommandName>s2pk</ToolCommandName>
|
||||
<PackageId>s2pk</PackageId>
|
||||
</PropertyGroup>
|
||||
|
|
18
appimage-builder.yml
Normal file
18
appimage-builder.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
version: 1
|
||||
AppDir:
|
||||
path: ./AppDir
|
||||
app_info:
|
||||
id: com.tonybark.s2pk
|
||||
name: s2pk
|
||||
icon: s2pk
|
||||
version: 0.3.101
|
||||
exec: usr/bin/s2pk
|
||||
exec_args: ""
|
||||
runtime:
|
||||
env:
|
||||
PATH: "$APPDIR/usr/bin:$PATH"
|
||||
|
||||
recipe:
|
||||
AppImage:
|
||||
arch: x86_64
|
||||
output: s2pk-x86_64.AppImage
|
Loading…
Add table
Reference in a new issue