Skip to content

Commit

Permalink
Pixelorama: update v1.0
Browse files Browse the repository at this point in the history
add auto-updater and switch to official release assets now that ARM32 is supported upstream and pi-apps minimum version is focal/bullseye
  • Loading branch information
theofficialgman committed Jul 30, 2024
1 parent c9f0ace commit 02b5dad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/updates/Pixelorama.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

version=$(get_release_raw Orama-Interactive/Pixelorama)
arm64_url="https://github.com/Orama-Interactive/Pixelorama/releases/download/${version}/Pixelorama-Linux-ARM64.tar.gz"
armhf_url="https://github.com/Orama-Interactive/Pixelorama/releases/download/${version}/Pixelorama-Linux-ARM32.tar.gz"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
2 changes: 1 addition & 1 deletion apps/Pixelorama/credits
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Emmanouil Papadeas for writing Pixelorama

theofficialgman for compiling godot and Pixelorama
theofficialgman for the installation script
15 changes: 10 additions & 5 deletions apps/Pixelorama/install
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
#!/bin/bash

version=v0.11.4
version=v1.0

case "$arch" in
"64") wget https://github.com/Pi-Apps-Coders/files/releases/download/large-files/Pixelorama_${version}_arm64.zip -O /tmp/pixelorama.zip || error "Could not download Pixelorama archive" ;;
"32") wget https://github.com/Pi-Apps-Coders/files/releases/download/large-files/Pixelorama_${version}_arm32.zip -O /tmp/pixelorama.zip || error "Could not download Pixelorama archive" ;;
"64") wget https://github.com/Orama-Interactive/Pixelorama/releases/download/${version}/Pixelorama-Linux-ARM64.tar.gz -O /tmp/pixelorama.tar.gz || error "Could not download Pixelorama archive" ;;
"32") wget https://github.com/Orama-Interactive/Pixelorama/releases/download/${version}/Pixelorama-Linux-ARM32.tar.gz -O /tmp/pixelorama.tar.gz || error "Could not download Pixelorama archive" ;;
*) error "Failed to detect OS CPU architecture! Something is very wrong." ;;
esac

sudo rm -rf /usr/share/Pixelorama /usr/share/applications/com.orama_interactive.Pixelorama.desktop /usr/bin/pixelorama
sudo unzip /tmp/pixelorama.zip -d /usr/share/Pixelorama
rm -f /tmp/pixelorama.zip
sudo tar -xvf /tmp/pixelorama.tar.gz -C /tmp/
case "$arch" in
"64") sudo mv /tmp/Pixelorama-Linux-ARM64/ /usr/share/Pixelorama/ || error "Could not install Pixelorama" ;;
"32") sudo mv /tmp/Pixelorama-Linux-ARM32/ /usr/share/Pixelorama/ || error "Could not install Pixelorama" ;;
*) error "Failed to detect OS CPU architecture! Something is very wrong." ;;
esac
rm -f /tmp/pixelorama.tar.gz

case "$arch" in
"64") sudo ln -s /usr/share/Pixelorama/Pixelorama.arm64 /usr/bin/pixelorama || error "Could not create symbolic link" ;;
Expand Down

0 comments on commit 02b5dad

Please sign in to comment.