Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init AppImage #115

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/cmake-linux64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CMake-Linux64

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Release

jobs:
appimage:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update -qy
sudo apt-get install gcc, glibc-source, glibc-tools, libc6, libc-dev-bin, libogg-dev, libsdl2-dev, libsdl2-ttf-dev, libsdl2-image-dev, zlib1g-dev, libvorbis-dev
- name: Build Hypseus Singe (AppImage)
run: |
Linux/appimage/appimage.sh
- uses: actions/upload-artifact@v3
with:
name: hypseus
path: Hypseus-Singe.AppImage
Binary file added Linux/appimage/Mesen.48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Linux/appimage/Mesen.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Icon=Mesen
Exec=Mesen %f
Terminal=false
Type=Application
Categories=Game;Emulator;
Name=Mesen
GenericName=Multi-system emulator
Comment=Multi-system emulator (NES, SNES, GB, PCE)
20 changes: 20 additions & 0 deletions Linux/appimage/appimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export PUBLISHFLAGS="-r linux-x64 --no-self-contained false -p:PublishSingleFile=true -p:PublishReadyToRun=true"
make -j$(nproc) -O LTO=true STATICLINK=true SYSTEM_LIBEVDEV=false

curl -SL https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -o appimagetool

mkdir -p AppDir/usr/bin
cp bin/linux-x64/Release/linux-x64/publish/Mesen AppDir/usr/bin
chmod +x AppDir/usr/bin
ln -sr AppDir/usr/bin/Mesen AppDir/AppRun

cp Linux/appimage/Mesen.48x48.png AppDir/Mesen.png
cp Linux/appimage/Mesen.desktop AppDir/Mesen.desktop
mkdir -p AppDir/usr/share/applications && cp ./AppDir/Mesen.desktop ./AppDir/usr/share/applications
mkdir -p AppDir/usr/share/icons && cp ./AppDir/Mesen.png ./AppDir/usr/share/icons
mkdir -p AppDir/usr/share/icons/hicolor/48x48/apps && cp ./AppDir/Mesen.png ./AppDir/usr/share/icons/hicolor/48x48/apps

chmod a+x appimagetool
./appimagetool AppDir/ Hypseus-Singe.AppImage