mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 09:05:42 +00:00
VERSION: 0.4.0b checklist done
This commit is contained in:
parent
c581fd98c4
commit
26fff0d2d9
185
.github/workflows/main.yml
vendored
185
.github/workflows/main.yml
vendored
|
@ -1,34 +1,63 @@
|
||||||
# Due to the changes to the build systems actually on the branch integrated, this script will fail on main until merged
|
|
||||||
|
|
||||||
name: main
|
name: main
|
||||||
|
|
||||||
# Controls when the workflow will run
|
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
||||||
jobs:
|
|
||||||
# This workflow contains a single job called "build"
|
|
||||||
build_main:
|
|
||||||
# The type of runner that the job will run on
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
jobs:
|
||||||
|
|
||||||
|
Job1_-_Building_P1:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
|
- name: Get date for artifacts
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M%S')"
|
||||||
|
|
||||||
|
- name: Extract branch name
|
||||||
|
shell: bash
|
||||||
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
|
id: extract_branch
|
||||||
|
|
||||||
|
- name: Generate build ID
|
||||||
|
id: generating_buildid
|
||||||
|
run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")"
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Prepearing enviornment
|
- name: Download global cache
|
||||||
|
uses: dawidd6/action-download-artifact@v2
|
||||||
|
with:
|
||||||
|
workflow: main.yml
|
||||||
|
name: global-cache
|
||||||
|
search_artifacts: true
|
||||||
|
skip_unpack: true
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Extract global cache
|
||||||
run: |
|
run: |
|
||||||
|
tar --skip-old-files -xzvf retrodeck-main.tar.gz
|
||||||
|
rm -f retrodeck-main.tar.gz
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: DEBUG
|
||||||
|
run: |
|
||||||
|
echo "Listing folder $PWD contents"
|
||||||
|
ls -lna
|
||||||
|
echo "Checking for version file"
|
||||||
|
find ~ -iname version
|
||||||
|
cat $(find ~ -iname version)
|
||||||
|
|
||||||
|
- name: Initialize enviornment
|
||||||
|
run: |
|
||||||
|
git pull
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
sudo add-apt-repository ppa:alexlarsson/flatpak
|
sudo add-apt-repository ppa:alexlarsson/flatpak
|
||||||
|
@ -37,32 +66,122 @@ jobs:
|
||||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
||||||
|
|
||||||
# Runs a set of commands using the runners shell
|
- name: Buld part 1 - Until melonds
|
||||||
- name: Building flatpak
|
|
||||||
run: |
|
run: |
|
||||||
sudo flatpak-builder --user --install --force-clean retrodeck-flatpak net.retrodeck.retrodeck.yml
|
sudo flatpak-builder --build-only --stop-at=melonds --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml
|
||||||
sudo flatpak-builder --repo=local --force-clean localrepo net.retrodeck.retrodeck.yml
|
|
||||||
sudo flatpak build-bundle local RetroDECK.flatpak net.retrodeck.retrodeck
|
|
||||||
|
|
||||||
- name: Get date for artifacts
|
- name: Compress cache
|
||||||
id: date
|
run: |
|
||||||
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')"
|
touch retrodeck-main.tar.gz
|
||||||
|
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
||||||
|
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
||||||
|
tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build
|
||||||
|
|
||||||
- name: Publish the flatpak in a new main draft release
|
- name: Upload build specific cache
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: "${{ steps.generating_buildid.outputs.build-id }}"
|
||||||
|
path: retrodeck-main.tar.gz
|
||||||
|
|
||||||
|
# this is done to speed up the things now, it may be removed later
|
||||||
|
- name: Compress global cache
|
||||||
|
run: |
|
||||||
|
touch retrodeck-main.tar.gz
|
||||||
|
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
||||||
|
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
||||||
|
tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload global cache
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: global-cache
|
||||||
|
path: retrodeck-main.tar.gz RetroDECK.flatpak
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
buildID: "${{ steps.generating_buildid.outputs.build-id }}"
|
||||||
|
|
||||||
|
Job2_-_Build_P2_and_publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [Job1_-_Building_P1]
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Download build specific cache
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ needs.Job1_-_Building_P1.outputs.buildID }}
|
||||||
|
|
||||||
|
- name: Extract cache
|
||||||
|
run: |
|
||||||
|
tar --skip-old-files -xzvf retrodeck-main.tar.gz
|
||||||
|
rm -f retrodeck-main.tar.gz
|
||||||
|
|
||||||
|
- name: DEBUG
|
||||||
|
run: |
|
||||||
|
echo "Listing folder $PWD contents"
|
||||||
|
ls -lna
|
||||||
|
echo "Checking for version file"
|
||||||
|
find ~ -iname version
|
||||||
|
cat $(find ~ -iname version)
|
||||||
|
|
||||||
|
- name: Initialize enviornment
|
||||||
|
run: |
|
||||||
|
git pull
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
sudo add-apt-repository ppa:alexlarsson/flatpak
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt install flatpak flatpak-builder p7zip-full
|
||||||
|
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
||||||
|
|
||||||
|
- name: Create Bundle
|
||||||
|
run: |
|
||||||
|
sudo flatpak-builder --user --force-clean --repo=${GITHUB_WORKSPACE}/local retrodeck-flatpak-main net.retrodeck.retrodeck.yml
|
||||||
|
sudo flatpak build-bundle $GITHUB_WORKSPACE/local RetroDECK.flatpak net.retrodeck.retrodeck
|
||||||
|
|
||||||
|
- name: Read version from version file
|
||||||
|
id: version
|
||||||
|
run: echo "##[set-output name=version;]$(cat $(find . -name version))"
|
||||||
|
|
||||||
|
- name: Publish the flatpak in a new main release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: "${{ steps.date.outputs.date }}"
|
#tag: "${{ steps.version.outputs.version }}"
|
||||||
|
#tag: "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}"
|
||||||
|
tag: "0.4.0b"
|
||||||
body: |
|
body: |
|
||||||
# Release Notes
|
# Release Notes (main)
|
||||||
|
|
||||||
General installation instructions can be found in the [Wiki](https://github.com/XargonWan/RetroDECK/wiki#installation-instructions).
|
|
||||||
|
|
||||||
## Changelog resume:
|
|
||||||
-
|
|
||||||
|
|
||||||
artifacts: "RetroDECK.flatpak"
|
artifacts: "RetroDECK.flatpak"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
draft: true
|
draft: true
|
||||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||||
repo: RetroDECK
|
repo: RetroDECK-main
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Compress global cache
|
||||||
|
run: |
|
||||||
|
touch retrodeck-main.tar.gz
|
||||||
|
rm -rf .flatpak-builder/build/*-{2,3,4,5,6}
|
||||||
|
find .flatpak-builder/build -xtype l -exec rm {} \; # removing dead symlinks
|
||||||
|
tar --ignore-failed-read -czvf retrodeck-main.tar.gz retrodeck-flatpak-main .flatpak-builder/build
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload global cache
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: global-cache
|
||||||
|
path: retrodeck-main.tar.gz RetroDECK.flatpak
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload RetroDECK.flatpak
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: retrodeck-flatpak
|
||||||
|
path: RetroDECK.flatpak
|
||||||
|
continue-on-error: true
|
|
@ -41,6 +41,70 @@
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<releases>
|
<releases>
|
||||||
|
|
||||||
|
<release version="0.4.0b" date="2022-05-26">
|
||||||
|
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.4.0b</url>
|
||||||
|
<description>
|
||||||
|
Emulators:
|
||||||
|
<ul>
|
||||||
|
<li>Yuzu was broken: fixed
|
||||||
|
<li>Dolphin-libretro is now the default emulator as Dolphin (Standalone) seems to be broken
|
||||||
|
</ul>
|
||||||
|
New Standalone emulators:
|
||||||
|
<ul>
|
||||||
|
<li>RPCS3
|
||||||
|
<li>PPSSPP
|
||||||
|
<li>CITRA
|
||||||
|
<li>MelonDS
|
||||||
|
<li>PICO-8
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
Tools:
|
||||||
|
<ul>
|
||||||
|
<li>Added tools to start each standalone emulator
|
||||||
|
<li>Added a tool to start PICO-8's SPLORE
|
||||||
|
<li>Fixed the Move ROMs tool (probably)
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
Frontend:
|
||||||
|
<ul>
|
||||||
|
<li>Updated ES-DE to 1.2.4 and redirected to the new repo
|
||||||
|
<li>Updated Art-Book theme to fix the mising images for n3ds and pico-8
|
||||||
|
<li>Now The quit button is showing "Quit RetroDECK"
|
||||||
|
<li>Added RetroDECK version in the ES-DE main menu
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
Backend:
|
||||||
|
<ul>
|
||||||
|
<li>Wrapper complete rewrite, now it's faster, tidier, solid
|
||||||
|
<li>Wrapper: user data is now backup and moved when managing the internal folders
|
||||||
|
<li>Introduced versioning: now the version is visible by CLI or in the options menu
|
||||||
|
<li>Rewrote cooker.yml workflow as the old one was no more useful for the scope
|
||||||
|
<li>Removed the bios/bios folder that in some situations is mistakenly created
|
||||||
|
<li>Logs are now into ~/retrodeck/.logs however they must be improved
|
||||||
|
<li>Moved the scraped data folder into ~/retrodeck/.downloaded_data for backup purposes and to avoid data loss when resetting RetroDECK
|
||||||
|
<li>Moved themes folder in ~/retrodeck/.downloaded_data, same as above
|
||||||
|
<li>Updated es_find_rules.xml
|
||||||
|
<li>Updated es_systems.xml: some default emulators are changed, if you cannot load the game is maybe because of that, you can still choose the former emulator from the list
|
||||||
|
<li>Added post-install scripts, now deleting ~/retrodeck/.log or ~/.var/app/net.retrodeck.retrodeck is no more needed (hopefully)
|
||||||
|
<li>Added CLI arguments, run flatpak run net.retrodeck.retrodeck -h for more info
|
||||||
|
<li>Added a CLI option to reset RetroDECK --reset
|
||||||
|
<li>Replaced Kdialog with Zenity
|
||||||
|
<li>Added manifest: this should fix the Discover bug
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
Known Issues:
|
||||||
|
<ul>
|
||||||
|
<li>Controller is not configured for most of the standalone emulators, I will configure them when I will get my Steam Deck (ETA mid June)
|
||||||
|
<li>External controllers seems not to be working
|
||||||
|
<li>Yuzu makes RetroDECK freeze in some situations, like if the rom is a bad dump
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
|
IMPORTANT NOTE:
|
||||||
|
At the moment the emulator configs are reset during every update, this was made because every version may bring new configurations, please back them up if you did some manual configs.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</release>
|
||||||
|
|
||||||
<release version="0.3.1b" date="2022-04-26">
|
<release version="0.3.1b" date="2022-04-26">
|
||||||
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.3.1b</url>
|
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.3.1b</url>
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -66,8 +66,8 @@ modules:
|
||||||
# The version number is stored in /var/conf/retrodeck/version
|
# The version number is stored in /var/conf/retrodeck/version
|
||||||
#
|
#
|
||||||
# UPDATE STEPS FOR MAIN:
|
# UPDATE STEPS FOR MAIN:
|
||||||
# [ ] Update the VERSION variable
|
# [X] Update the VERSION variable
|
||||||
# [ ] Update the appdata.xml with the version number and notes
|
# [X] Update the appdata.xml with the version number and notes
|
||||||
#
|
#
|
||||||
- name: version-initialization
|
- name: version-initialization
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
|
@ -75,7 +75,7 @@ modules:
|
||||||
- |
|
- |
|
||||||
git checkout ${GITHUB_REF_NAME}
|
git checkout ${GITHUB_REF_NAME}
|
||||||
mkdir -p ${FLATPAK_DEST}/retrodeck/
|
mkdir -p ${FLATPAK_DEST}/retrodeck/
|
||||||
VERSION="cooker"
|
VERSION="0.4.0b"
|
||||||
if [[ $VERSION == "cooker" ]];
|
if [[ $VERSION == "cooker" ]];
|
||||||
then
|
then
|
||||||
VERSION=$(git describe --tags | tr - .)
|
VERSION=$(git describe --tags | tr - .)
|
||||||
|
|
Loading…
Reference in a new issue