Integrate forgejo workflows, general tidying

This commit is contained in:
dajoho 2025-06-08 14:42:12 +02:00
parent 7eacfe6860
commit d29fdac9a4
7 changed files with 101 additions and 6 deletions

View file

@ -0,0 +1,26 @@
name: Linux
on: [push]
jobs:
build-linux:
name: Build Linux
runs-on: docker
container:
image: code.teampandory.com/pandorytool/pandorytool/buildlinux-flatpak:20250601
steps:
- uses: actions/checkout@v3
- name: Restore Flatpak Cache
uses: actions/cache@v3
with:
path: |
.flatpak-builder
/root/.cache/.flatpak
key: ${{ github.ref_name }}-flatpak-deps
- name: Run Linux Build Script
run: build/linux/build-linux-flatpak.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: dist-linux-flatpak
path: dist
retention-days: 7

View file

@ -0,0 +1,45 @@
name: Windows
on: [push]
jobs:
build-windows:
name: Build Windows
runs-on: docker
container:
image: code.teampandory.com/pandorytool/pandorytool/buildwin:latest
steps:
- uses: actions/checkout@v3
- name: Run Windows Build Script
env:
SCRAPE_USERNAME: ${{ secrets.SCRAPE_USERNAME }}
SCRAPE_PASSWORD: ${{ secrets.SCRAPE_PASSWORD }}
SCRAPE_URL: ${{ secrets.SCRAPE_URL }}
run: build/windows/build-win.sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: dist-windows
path: dist
retention-days: 7
pack-windows:
name: Pack Windows
runs-on: docker
container:
image: code.teampandory.com/dajoho/pandorytool/packwin:latest
needs: build-windows
steps:
- uses: actions/checkout@v3
- name: Download Windows Build Artifacts
uses: actions/download-artifact@v3
with:
name: dist-windows
path: dist
- name: Run Windows Pack Script
run: build/windows/pack-win.sh
- name: Upload Packed Artifact
uses: actions/upload-artifact@v3
with:
name: dist-packed-windows
path: dist
retention-days: 7

View file

@ -1,4 +1,4 @@
# PandoryTool Ultimate 2.2
# PandoryTool Source Code
PandoryTool is a swiss-army-knife for your Pandora Arcade Box:
- automate ROM installation for the Pandora Games 3D / Saga 3D compatible systems / GOLDENSKY G6 / 3D RRTV 12S / PANDORA 9H)
@ -7,7 +7,7 @@ PandoryTool is a swiss-army-knife for your Pandora Arcade Box:
- install the PandorySeven improvements for the Pandora Key 7 (sharp pixels, 4:3)
<p align="center">
<img width="600" src="https://raw.githubusercontent.com/emuchicken/pandorytool/master/docs/pandory.gif">
<img width="600" src="https://code.teampandory.com/dajoho/pandorytool/raw/branch/master/docs/pandory.gif">
</p>
## License

View file

@ -1,6 +1,6 @@
FROM fedora:40
RUN dnf -y update && dnf -y upgrade
RUN dnf -y install flatpak-builder
RUN dnf -y install flatpak-builder npm nodejs
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
RUN flatpak install -y org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08
RUN flatpak install -y org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08

View file

@ -0,0 +1,22 @@
#!/bin/bash
cp -f build/linux/com.teampandory.pandorytool.yaml.in build/linux/com.teampandory.pandorytool.yaml
sed -i "s#REPLACE_SCRAPE_USERNAME#$SCRAPE_USERNAME#g" build/linux/com.teampandory.pandorytool.yaml
sed -i "s#REPLACE_SCRAPE_PASSWORD#$SCRAPE_PASSWORD#g" build/linux/com.teampandory.pandorytool.yaml
sed -i "s#REPLACE_SCRAPE_URL#$SCRAPE_URL#g" build/linux/com.teampandory.pandorytool.yaml
flatpak-builder --repo=repo --install --user --force-clean build-dir build/linux/com.teampandory.pandorytool.yaml
flatpak build-bundle repo pandorytool.flatpak com.teampandory.pandorytool
export VERSIONCODE="$(git describe --tags --abbrev=0 2>/dev/null || git rev-parse --short HEAD)-$(date +%Y%m%d)"
export TARGET="PandoryTool-$VERSIONCODE"
mkdir -p "dist/$TARGET/"
cp -Rv tool/etc/* "dist/$TARGET"
rm -rf "dist/$TARGET/*.bat"
mv pandorytool.flatpak "dist/$TARGET/PandoryTool-Installer-$VERSIONCODE.flatpak"
pushd dist
tar czf "../PandoryTool-$VERSIONCODE.tgz" "$TARGET"
popd
rm -rf "dist/$TARGET/*"
mv "PandoryTool-$VERSIONCODE.tgz" dist/

View file

@ -9,6 +9,8 @@ RUN dnf -y install \
tar \
rsync \
git \
npm \
nodejs \
;
RUN dnf -y install \
mingw64-winpthreads.noarch \

View file

@ -1,5 +1,5 @@
FROM debian:bookworm
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y nsis nsis-doc nsis-pluginapi git && \
rm -rf /var/lib/apt/lists/*
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y nsis nsis-doc nsis-pluginapi git npm nodejs && \
rm -rf /var/lib/apt/lists/*