diff --git a/.github/workflows/updates/Pixelorama.sh b/.github/workflows/updates/Pixelorama.sh new file mode 100755 index 0000000000..5b4be8f184 --- /dev/null +++ b/.github/workflows/updates/Pixelorama.sh @@ -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 diff --git a/apps/Pixelorama/credits b/apps/Pixelorama/credits index 6fdeda6cee..9ee101b666 100644 --- a/apps/Pixelorama/credits +++ b/apps/Pixelorama/credits @@ -1,3 +1,3 @@ Emmanouil Papadeas for writing Pixelorama -theofficialgman for compiling godot and Pixelorama \ No newline at end of file +theofficialgman for the installation script \ No newline at end of file diff --git a/apps/Pixelorama/install b/apps/Pixelorama/install index 4ac39ce20a..55e164b0f7 100755 --- a/apps/Pixelorama/install +++ b/apps/Pixelorama/install @@ -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" ;;