Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
222cbb6
Create app iamge.yml
J-Atoche Aug 29, 2023
07fc6c0
Update build.yml
J-Atoche Aug 29, 2023
316eaa3
Update app iamge.yml
J-Atoche Aug 29, 2023
0971dd6
Update app iamge.yml
J-Atoche Aug 29, 2023
8d471c5
Update and rename app iamge.yml to app image.yml
J-Atoche Aug 29, 2023
928147f
Update app image.yml
J-Atoche Aug 29, 2023
976ab85
Update app image.yml
J-Atoche Aug 29, 2023
a7a1ec6
Update app image.yml
J-Atoche Aug 29, 2023
c0c14f5
Update build.yml
J-Atoche Aug 29, 2023
d7c5ed2
Update app image.yml
J-Atoche Aug 29, 2023
23ff22c
Update app image.yml
J-Atoche Aug 29, 2023
0a93790
Update app image.yml
J-Atoche Aug 29, 2023
0e87275
Update app image.yml
J-Atoche Aug 29, 2023
24236a7
Update app image.yml
J-Atoche Aug 29, 2023
507814d
Update app image.yml
J-Atoche Aug 29, 2023
dd25964
Update app image.yml
J-Atoche Aug 29, 2023
4074d11
Update app image.yml
J-Atoche Aug 29, 2023
51800e8
Update app image.yml
J-Atoche Aug 29, 2023
691ee8d
Update app image.yml
J-Atoche Aug 29, 2023
1a0b7f7
Update app image.yml
J-Atoche Aug 29, 2023
f9035f4
Update app image.yml
J-Atoche Aug 29, 2023
238a067
Update app image.yml
J-Atoche Aug 29, 2023
903b196
Update app image.yml
J-Atoche Aug 29, 2023
2e0cdc7
Update app image.yml
J-Atoche Aug 30, 2023
8620be4
Update app image.yml
J-Atoche Aug 30, 2023
299877e
Update app image.yml
J-Atoche Aug 30, 2023
703d8a2
Update app image.yml
J-Atoche Aug 30, 2023
e5fe4a0
Update app image.yml
J-Atoche Aug 30, 2023
049057e
Update app image.yml
J-Atoche Aug 30, 2023
309452c
Update app image.yml
J-Atoche Aug 30, 2023
32996a1
Update app image.yml
J-Atoche Aug 30, 2023
0169af3
Update app image.yml
J-Atoche Aug 30, 2023
0bbb60b
Update app image.yml
J-Atoche Aug 30, 2023
18e73a1
Update app image.yml
J-Atoche Aug 30, 2023
e3a018c
Update app image.yml
J-Atoche Aug 30, 2023
d2a2c3e
Update app image.yml
J-Atoche Aug 30, 2023
c1f8ce5
Update app image.yml
J-Atoche Aug 30, 2023
0591a66
Update app image.yml
J-Atoche Aug 30, 2023
f05f994
Update app image.yml
J-Atoche Aug 30, 2023
308fc97
Update app image.yml
J-Atoche Aug 30, 2023
35defca
Update app image.yml
J-Atoche Aug 30, 2023
491d436
Update app image.yml
J-Atoche Aug 30, 2023
17db8bc
Update app image.yml
J-Atoche Aug 30, 2023
66ae29b
Update app image.yml
J-Atoche Aug 30, 2023
730bb05
Update app image.yml
J-Atoche Aug 30, 2023
737265c
Update build.yml
J-Atoche Aug 30, 2023
054112d
Update build.yml
J-Atoche Aug 30, 2023
f104b10
Update build.yml
J-Atoche Aug 30, 2023
357c066
Update build.yml
J-Atoche Aug 30, 2023
7017c81
Update build.yml
J-Atoche Aug 30, 2023
d3db13a
Update build.yml
J-Atoche Aug 30, 2023
c705856
Delete app image.yml
J-Atoche Aug 30, 2023
9f6d468
Create flatpak.yml
J-Atoche Aug 30, 2023
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
70 changes: 70 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,73 @@ jobs:
name: macos
path: desmume/src/frontend/cocoa/desmume.xcarchive/Products/Applications/DeSmuME.app.zip
if-no-files-found: error


build_appimage:
name: Build DeSmuME AppImage
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libfuse2 qtbase5-dev qtchooser meson libsdl2-dev libpcap-dev libgtk-3-dev libgtk2.0-dev autoconf libglu1-mesa-dev

- name: Build DeSmuME
run: |
cd desmume/src/frontend/posix/
autoreconf -i
./configure --prefix=/usr --enable-gdb-stub --enable-wifi
make -j8
make DESTDIR=/tmp/DeSmuME install

- name: Create AppDir directory
run: mkdir -p AppDir

- name: Copy files to AppDir
run: |
cp /tmp/DeSmuME/usr/bin/desmume AppDir/
cp /tmp/DeSmuME/usr/bin/desmume-cli AppDir/
cp desmume/src/frontend/posix/gtk2/desmume.desktop AppDir/
cp desmume/src/frontend/cocoa/images/Icon_DeSmuME_32x32.png AppDir/DeSmuME.png
cp desmume/src/frontend/posix/gtk/org.desmume.DeSmuME.svg AppDir/
cp desmume/src/frontend/posix/gtk2/DeSmuME.xpm AppDir/

- name: Set Qt environment variable
run: export QTDIR=/usr/lib/qt5

- name: Install linuxdeploy and plugins
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod a+x linuxdeploy-x86_64.AppImage
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage

- name: Build AppImage
run: |
export ARCH=x86_64 # Definir la variable de entorno ARCH
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
mkdir dist

- name: Find AppImage File Recursively
run: |
# Buscar el archivo AppImage recursivamente desde el directorio de trabajos
appimage_path=$(find /home/runner/work -name "DeSmuME_*.AppImage" -type f)

# Verificar si se encontró el archivo AppImage
if [[ -n "$appimage_path" ]]; then
echo "Archivo AppImage encontrado en la ruta: $appimage_path"
mv "$appimage_path" dist/ # Mover el archivo a la carpeta "dist"
else
echo "Archivo AppImage no encontrado."
exit 1
fi

- name: Upload AppImage artifact
uses: actions/upload-artifact@v2
with:
name: desmume-appimage
path: ./dist/
36 changes: 36 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
branches: [main]
pull_request:
name: CI
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
# Don't fail the whole workflow if one architecture fails
fail-fast: false
steps:
- uses: actions/checkout@v3
# Docker is required by the docker/setup-qemu-action which enables emulation
- name: Install deps
if: ${{ matrix.arch != 'x86_64' }}
run: |
dnf -y install docker
- name: Set up QEMU
if: ${{ matrix.arch != 'x86_64' }}
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
with:
bundle: palette.flatpak
manifest-path: org.gnome.zbrown.Palette.yml
cache-key: flatpak-builder-${{ github.sha }}
arch: ${{ matrix.arch }}