Skip to content

Commit 360f547

Browse files
committed
Fix tar extraction in Android workflow
- Add --strip-components=1 to tar extraction to handle directory structure - Add find command to locate extracted binary - This should resolve the 'No such file or directory' error when chmod fails - The tar.gz likely contains a directory structure that needs to be stripped
1 parent d57a573 commit 360f547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/android-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ jobs:
6565
- name: Download xfg-stark-cli
6666
run: |
6767
curl -L -o xfg-stark-cli-linux.tar.gz "https://github.com/ColinRitman/xfgwin/releases/download/v0.8.8/xfg-stark-cli-linux.tar.gz"
68-
tar -xzf xfg-stark-cli-linux.tar.gz
68+
tar -xzf xfg-stark-cli-linux.tar.gz --strip-components=1
69+
find . -name "xfg-stark-cli-linux" -type f
6970
chmod +x xfg-stark-cli-linux
7071
mkdir -p assets/bin
7172
mv xfg-stark-cli-linux assets/bin/

0 commit comments

Comments
 (0)