mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-31 23:03:33 +00:00
ci: Fix shasum command for AppImage build
- Replace perl-digest-sha package with custom shasum wrapper - Create /usr/local/bin/shasum script that handles -a 256 syntax - Maps shasum -a 256 to sha256sum for AppImage compatibility - This should resolve the 'shasum: command not found' error - AppImage build should now complete successfully
This commit is contained in:
@@ -39,8 +39,15 @@ build-linux:
|
||||
- pacman -S --noconfirm nasm
|
||||
- pacman -S --noconfirm glslang
|
||||
- pacman -S --noconfirm fuse2 gdb
|
||||
# Install shasum for AppImage compatibility
|
||||
- pacman -S --noconfirm perl-digest-sha
|
||||
# Create shasum compatibility wrapper for AppImage build
|
||||
- echo '#!/bin/bash' > /usr/local/bin/shasum
|
||||
- echo 'if [ "$1" = "-a" ] && [ "$2" = "256" ]; then' >> /usr/local/bin/shasum
|
||||
- echo ' shift 2' >> /usr/local/bin/shasum
|
||||
- echo ' sha256sum "$@"' >> /usr/local/bin/shasum
|
||||
- echo 'else' >> /usr/local/bin/shasum
|
||||
- echo ' sha256sum "$@"' >> /usr/local/bin/shasum
|
||||
- echo 'fi' >> /usr/local/bin/shasum
|
||||
- chmod +x /usr/local/bin/shasum
|
||||
script:
|
||||
- git submodule update --init --recursive
|
||||
- mkdir -p build && cd build
|
||||
|
||||
Reference in New Issue
Block a user