mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
BUILDER: added the availability to build offline
This commit is contained in:
parent
7c609f2a22
commit
4d4b149e07
10
.github/workflows/cooker-selfhosted.yml
vendored
10
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -42,15 +42,7 @@ jobs:
|
||||||
run: "automation_tools/install_dependencies.sh"
|
run: "automation_tools/install_dependencies.sh"
|
||||||
|
|
||||||
- name: Generate cooker build ID
|
- name: Generate cooker build ID
|
||||||
run: |
|
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker_build_id.sh"
|
||||||
word1=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
|
|
||||||
capitalized_word1="$(tr '[:lower:]' '[:upper:]' <<< ${word1:0:1})${word1:1}"
|
|
||||||
word2=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
|
|
||||||
capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}"
|
|
||||||
result=$capitalized_word1$capitalized_word2
|
|
||||||
echo $result > ${GITHUB_WORKSPACE}/buildid
|
|
||||||
echo "buildid=$result" >> $GITHUB_ENV
|
|
||||||
echo "VersionID is $result"
|
|
||||||
|
|
||||||
- name: Run pre-build automation tasks
|
- name: Run pre-build automation tasks
|
||||||
run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
run : "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/pre_build_automation.sh"
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,6 +18,7 @@ backup
|
||||||
tmp
|
tmp
|
||||||
.godot
|
.godot
|
||||||
rd-submodules/es-de/patches-tmp*
|
rd-submodules/es-de/patches-tmp*
|
||||||
|
.local/
|
||||||
|
|
||||||
# Python #
|
# Python #
|
||||||
##########
|
##########
|
||||||
|
|
10
automation_tools/cooker_build_id.sh
Normal file
10
automation_tools/cooker_build_id.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
word1=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
|
||||||
|
capitalized_word1="$(tr '[:lower:]' '[:upper:]' <<< ${word1:0:1})${word1:1}"
|
||||||
|
word2=$(shuf -n 1 ${GITHUB_WORKSPACE}/automation_tools/codename_wordlist.txt)
|
||||||
|
capitalized_word2="$(tr '[:lower:]' '[:upper:]' <<< ${word2:0:1})${word2:1}"
|
||||||
|
result=$capitalized_word1$capitalized_word2
|
||||||
|
echo $result > ${GITHUB_WORKSPACE}/buildid
|
||||||
|
echo "buildid=$result" >> $GITHUB_ENV
|
||||||
|
echo "VersionID is $result"
|
|
@ -6,7 +6,7 @@ git config --global protocol.file.allow always
|
||||||
|
|
||||||
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
|
if [[ "${GITHUB_REF##*/}" == "main" ]]; then
|
||||||
BUNDLE_NAME="RetroDECK.flatpak"
|
BUNDLE_NAME="RetroDECK.flatpak"
|
||||||
FOLDER=retrodeck-flatpak-cooker
|
FOLDER=retrodeck-flatpak
|
||||||
else
|
else
|
||||||
BUNDLE_NAME="RetroDECK-cooker.flatpak"
|
BUNDLE_NAME="RetroDECK-cooker.flatpak"
|
||||||
FOLDER=retrodeck-flatpak-cooker
|
FOLDER=retrodeck-flatpak-cooker
|
||||||
|
|
13
build-local.sh
Executable file
13
build-local.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export GITHUB_WORKSPACE="."
|
||||||
|
|
||||||
|
automation_tools/install_dependencies.sh
|
||||||
|
automation_tools/cooker_build_id.sh
|
||||||
|
automation_tools/pre_build_automation.sh
|
||||||
|
automation_tools/cooker_flatpak_portal_add.sh
|
||||||
|
automation_tools/appdata_management.sh
|
||||||
|
automation_tools/flatpak_build_download_only.sh
|
||||||
|
automation_tools/flatpak_build_only.sh
|
||||||
|
automation_tools/flatpak_build_bundle.sh
|
||||||
|
|
Loading…
Reference in a new issue