Skip to content

Commit

Permalink
AppImage build support
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGlockenspiel committed Sep 13, 2022
1 parent f5c687c commit 0bf2c0a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ protocols
*.i*86
*.x86_64
*.hex
*.AppImage

# Debug files
*.dSYM/
Expand All @@ -54,5 +55,6 @@ Module.symvers
Mkfile.old
dkms.conf

AppDir
.vscode/
result
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ install: $(BINARY)
uninstall:
$(RM) -f $(DESTDIR)$(PREFIX)/$(BINDIR)/$(BINARY)

appimage: $(BINARY)
curl -#L -O https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
./linuxdeploy-x86_64.AppImage --appdir AppDir --executable ./$(BINARY) --desktop-file res/activate-linux.desktop --icon-file res/icon.png --output appimage

clean:
$(<<) " RM\t" $(<<objects>>:obj/%=%) $(BINARY)
@$(RM) -f $(<<objects>>) $(BINARY) obj/.enabled
Expand Down
10 changes: 10 additions & 0 deletions res/activate-linux.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Activate Linux
Comment=a very cool software
Exec=activate-linux
Icon=icon
GenericName=Activate Linux
Categories=Utility
Terminal=false
Binary file added res/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0bf2c0a

Please sign in to comment.