Skip to content

Commit

Permalink
Merge pull request #212 from kloptops/main
Browse files Browse the repository at this point in the history
Fixed $CFW_GLIBC output in device_info.txt, Added trimui.portmaster.zip generation.
  • Loading branch information
kloptops authored Jan 19, 2025
2 parents a4182e0 + d8af9e0 commit a300329
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
replacesArtifacts: false
omitNameDuringUpdate: true
body: "Release: ${{steps.version.outputs.version}} (${{steps.version.outputs.release}})"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5, trimui.portmaster.zip, trimui.portmaster.zip.md5"
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ steps.env.outputs.RELEASE_REPO }}
owner: ${{ steps.env.outputs.RELEASE_ORG }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
replacesArtifacts: false
omitNameDuringUpdate: true
body: "Release: ${{steps.version.outputs.version}} (${{steps.version.outputs.release}})"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5, trimui.portmaster.zip, trimui.portmaster.zip.md5"
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ steps.env.outputs.RELEASE_REPO }}
owner: ${{ steps.env.outputs.RELEASE_ORG }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
replacesArtifacts: false
omitNameDuringUpdate: true
body: "Release: ${{steps.version.outputs.version}} (${{steps.version.outputs.release}})"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5"
artifacts: "PortMaster.zip, PortMaster.zip.md5, version, version.json, Install*PortMaster.sh, muos.portmaster.zip, muos.portmaster.zip.md5, retrodeck.portmaster.zip, retrodeck.portmaster.zip.md5, trimui.portmaster.zip, trimui.portmaster.zip.md5"
token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ steps.env.outputs.RELEASE_REPO }}
owner: ${{ steps.env.outputs.RELEASE_ORG }}
Expand Down
9 changes: 7 additions & 2 deletions PortMaster/device_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

## New Device Info
#
# - DEVICE_INFO_VERSION
# - PM_VERSION
# - DISPLAY_ORIENTATION
# - DISPLAY_WIDTH
# - DISPLAY_HEIGHT
# - DISPLAY_ORIENTATION
Expand All @@ -19,6 +22,8 @@
# - DEVICE_HAS_AARCH64
# - DEVICE_HAS_X86
# - DEVICE_HAS_X86_64
# - ASPECT_X
# - ASPECT_Y
# - ANALOG_STICKS
#
# usage `source <path_to>/device_info.txt`
Expand Down Expand Up @@ -350,7 +355,7 @@ esac

CFW_GLIBC="230"

for path in '/lib /lib64 /lib/aarch64-linux-gnu /lib32 /lib/arm-linux-gnueabihf /usr/lib /usr/lib64 /usr/lib32'; do
for path in /lib /lib64 /lib/aarch64-linux-gnu /lib32 /lib/arm-linux-gnueabihf /usr/lib /usr/lib64 /usr/lib32; do
libc="$path/libc.so.6"
if [ -x "$libc" ]; then
CFW_GLIBC=$("$libc" 2>&1 | head -n 1 | awk '{print $NF}' | tr -d '.')
Expand Down Expand Up @@ -427,9 +432,9 @@ DEVICE_HAS_X86="${DEVICE_HAS_X86}"
DEVICE_HAS_X86_64="${DEVICE_HAS_X86_64}"
DISPLAY_WIDTH=${DISPLAY_WIDTH}
DISPLAY_HEIGHT=${DISPLAY_HEIGHT}
DISPLAY_ORIENTATION=${DISPLAY_ORIENTATION}
ASPECT_X=${ASPECT_X}
ASPECT_Y=${ASPECT_Y}
DISPLAY_ORIENTATION=${DISPLAY_ORIENTATION}
ANALOG_STICKS=${ANALOG_STICKS}
\`\`\`
__INFO_DUMP__

0 comments on commit a300329

Please sign in to comment.