Skip to content

Update install-vitasdk.sh to check for arch on Linux#107

Open
joel16 wants to merge 1 commit intovitasdk:masterfrom
joel16:linux-arm64
Open

Update install-vitasdk.sh to check for arch on Linux#107
joel16 wants to merge 1 commit intovitasdk:masterfrom
joel16:linux-arm64

Conversation

@joel16
Copy link
Copy Markdown
Contributor

@joel16 joel16 commented Feb 8, 2025

If aarch64 is being used, the script will atempt to download the arm64 version, otherwise it will default to x86_64 or other architectures.

FYI: I have added support for linux-arm64 (vitasdk/autobuilds#23)

if [ "$(uname -m)" == "aarch64" ]; then
wget -O- "$(get_download_link master linux-arm64)" | tar xj -C $INSTALLDIR --strip-components=1
else
wget -O- "$(get_download_link master linux)" | tar xj -C $INSTALLDIR --strip-components=1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember that when I first read this patch, I'm worried that a script can download aarch64 version on linux x86_64

so, safe way is, we should split type linux-arm64 and linux-x86_64.
but for backward compatibility, it should be.. linux-v2 (cuz a tag would be master-linux-v2.4321)

Suggested change
wget -O- "$(get_download_link master linux)" | tar xj -C $INSTALLDIR --strip-components=1
wget -O- "$(get_download_link master linux-v2)" | tar xj -C $INSTALLDIR --strip-components=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants