From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Thu, 11 Jul 2024 20:49:13 +0000 (+0200) Subject: platform-miyoo: change to IPK release output X-Git-Tag: v2.00~7 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3fa3ee270fc5905943719e966277b8ae10e1cd4;p=picodrive.git platform-miyoo: change to IPK release output create `platform/miyoo/pkg.cfg` --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50847c34..40b77daf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -196,12 +196,12 @@ jobs: ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD) ./configure --platform=miyoo make -j$(getconf _NPROCESSORS_ONLN) - mv PicoDrive-miyoo.zip PicoDrive-miyoo-$ver.zip + mv PicoDrive-miyoo.ipk PicoDrive-miyoo-$ver.ipk - name: artifacts uses: actions/upload-artifact@v4 with: name: Miyoo - path: PicoDrive-miyoo*.zip + path: PicoDrive-miyoo*.ipk build-retrofw: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 79cc126b..742cba8e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ PicoDrive picodrive picodrive_libretro* PicoDrive*.opk +PicoDrive*.ipk PicoDrive*.zip pico_int_offs.h amalgamate diff --git a/Makefile b/Makefile index f6ae8a5a..48fa6a4d 100644 --- a/Makefile +++ b/Makefile @@ -141,10 +141,12 @@ all: PicoDrive-dge.zip CFLAGS += -DSDL_SURFACE_SW # some legacy dinguces had bugs in HWSURFACE else ifneq (,$(filter %__MIYOO__, $(CFLAGS))) -PicoDrive-miyoo.zip: .od_data +PicoDrive-miyoo.ipk: .od_data rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge - cd .od_data && zip -9 -r ../$@ * -all: PicoDrive-miyoo.zip + gm2xpkg -i platform/miyoo/pkg.cfg + mv picodrive.ipk $@ + @gm2xpkg -c platform/miyoo/pkg.cfg >/dev/null 2>&1 +all: PicoDrive-miyoo.ipk else PicoDrive.opk: .od_data rm -f .od_data/PicoDrive.dge diff --git a/platform/miyoo/pkg.cfg b/platform/miyoo/pkg.cfg new file mode 100644 index 00000000..dd5fa0d8 --- /dev/null +++ b/platform/miyoo/pkg.cfg @@ -0,0 +1,45 @@ +# NOTES: +## All variable values should enclosed within double quotes: "" +## CONFIGURATION FILE for `gm2xpkg` script version: +PKGVER="0.4" + +# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`: +PACKAGE="" +ZIP="" +IPK="" +CLEAN="" + +# ENV VAR. +## Specific (mandatory to provide!) +TARGET="picodrive" # replace with binary name +VERSION="v2.00" # replace with correct release version if exist + +## Generic - common to all apps (better to not modify) +HOMEPATH="/mnt" +RELEASEDIR="" +ASSETSDIR=".od_data" +OPKG_ASSETSDIR="" +LINK="" # full name of gm2x link, modify if exec binary name may be different from target name - place in CWD (warning: it may be removed with CLEAN=1) +ALIASES="" # full name (with ext) of *.txt file with new names for selector e.g. old_title=new_title - place in CWD +MANUAL="" # full name (with ext) of *.man.txt file with usage description of target app - place in CWD + +## Link entries (better modify if no .lnk file provided) +TITLE="PicoDrive" +DESCRI="MegaDrive/MegaCD/32X emulator" +SELDIR="/mnt/roms/SMD" +DESTDIR="emus" # default=apps +SECTION="emulators" # default=applications + +## Custom entries (if needed then modify) +TARGET_DIR="" # the directory /$HOMEPATH/$DESTDIR/TARGET_DIR of executable binary if not provided the TARGET_DIR=$TARGET +DOCS=("COPYING" "AUTHORS") # array of extra text files e.g. =("LICENSE" "CHANGELOG" "CONTRIBUTORS") which will be copied & converted to *.txt files for ease of use by frontend + +## IPK control entries (if needed then modify) +PRIORITY="" +MAINTAINER="irixxxx" +CONFFILES="" +ARCH="" # default=arm - do not modify for ARM chips +# CONTROL= # automated output of *.ipk control config file +DEPENDS="" # list of dependency packages e.g. ="sdl, libpng" or ="sdl (>= 2.9.2), sdl_mixer (= ed76d39cda0735d26c14a3e4f4da996e420f6478)" provide only for shared libs build, otherwise ignored +SOURCE="https://github.com/irixxxx/picodrive" +LICENSE="Custom"