Skip to content

Commit 0210eee

Browse files
committed
Fix Android workflow binary extraction with robust approach
- Add tar -tzf to list contents before extraction - Add ls -la to show extracted files - Use find with wildcard pattern to locate any xfg-stark-cli binary - Use variable to store found binary path - This should handle any directory structure in the tar.gz file - More robust than assuming specific file names
1 parent 360f547 commit 0210eee

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/android-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@ 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 --strip-components=1
69-
find . -name "xfg-stark-cli-linux" -type f
70-
chmod +x xfg-stark-cli-linux
68+
tar -tzf xfg-stark-cli-linux.tar.gz
69+
tar -xzf xfg-stark-cli-linux.tar.gz
70+
ls -la
71+
find . -name "*xfg-stark-cli*" -type f
72+
BINARY_PATH=$(find . -name "*xfg-stark-cli*" -type f | head -1)
73+
echo "Found binary at: $BINARY_PATH"
74+
chmod +x "$BINARY_PATH"
7175
mkdir -p assets/bin
72-
mv xfg-stark-cli-linux assets/bin/
76+
mv "$BINARY_PATH" assets/bin/xfg-stark-cli-linux
7377
rm xfg-stark-cli-linux.tar.gz
7478
7579
- name: Download fuego-walletd

0 commit comments

Comments
 (0)