Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtrt committed Dec 25, 2024
1 parent 13c4965 commit b22c6b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ jobs:

- name: Prerequisites
run: |
sudo apt update && sudo apt install libfuse2 tree -y
wget -q "https://github.com/AppImageCrafters/appimage-builder/releases/download/Continuous/appimage-builder-1.1.1.dev32+g2709a3b-x86_64.AppImage" -O appimage-builder ; chmod +x appimage-builder ; ./appimage-builder --appimage-extract &>/dev/null
sudo apt update && sudo apt install libfuse2 patchelf tree -y
wget -q "https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage" -O appimage-builder ; chmod +x appimage-builder
mkdir -p /usr/share/icons/hicolor/scalable/ ; cp wine.svg /usr/share/icons/hicolor/scalable/
wget -q "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage" -O appimagetool ; chmod a+x appimagetool
# devel
echo "WINE_VER=devel_9.22" >> $GITHUB_ENV
UPINFO=$(grep -Eo update-info.* wine-devel.yml | awk '{print $2}')

# wineasio
git clone --recursive https://github.com/mmtrt/wineasio.git --depth=1 -b main
Expand All @@ -58,8 +60,13 @@ jobs:
# pull glibc version from archlinux packages web
sed -i "s|x.xx|$(wget -qO- https://archlinux.org/packages/core/x86_64/glibc/ | grep glibc | awk '{print $5}' | cut -d'+' -f1 | head -1)|" wine-devel.yml

squashfs-root/AppRun --recipe wine-devel.yml
squashfs-root/AppRun --skip-appimage --recipe wine-devel.yml
find ${GITHUB_WORKSPACE}/AppDir/runtime/compat/lib/i386-linux-gnu/ -iname 'libz**' | xargs -i -t -exec cp {} ${GITHUB_WORKSPACE}/AppDir/usr/lib/i386-linux-gnu/
find ${GITHUB_WORKSPACE}/AppDir/runtime/compat/lib/x86_64-linux-gnu/ -iname 'libz**' | xargs -i -t -exec cp {} ${GITHUB_WORKSPACE}/AppDir/usr/lib/x86_64-linux-gnu/
find ${GITHUB_WORKSPACE}/AppDir/runtime/compat/usr/lib/i386-linux-gnu/ -iname 'libstdc**' | xargs -i -t -exec cp {} ${GITHUB_WORKSPACE}/AppDir/usr/lib/i386-linux-gnu/
cd ./AppDir/runtime/compat/lib/i386-linux-gnu/
ln -rsf ld-linux.so.2 ${GITHUB_WORKSPACE}/AppDir/runtime/default/lib/
./appimagetool --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 22 -n -u "$UPINFO" AppDir/ wine-${WINE_VER}-x86_64.AppImage
- name: release
uses: marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303
with:
Expand Down
3 changes: 1 addition & 2 deletions wine-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ script:
# Copy App icon to AppDir/usr/share/icons needed prior to appimage-builder ver 1.x.x
- mkdir -p AppDir/usr/share/icons ; cp wine.svg AppDir/usr/share/icons
# Add static appimage runtime
- cp runtime/runtime-x86_64 appimage-build/prime/runtime-x86_64
# - cp runtime/runtime-x86_64 appimage-build/prime/runtime-x86_64
# Add config
- cp -R config AppDir/winedata
# Add wineaiso
Expand Down Expand Up @@ -264,7 +264,6 @@ AppDir:
cp wineasio/docker/wineasio64.dll.so AppDir/opt/wine-devel/lib64/wine/x86_64-unix/wineasio64.so
runtime:
version: v3.0.0-devel-2
env:
LIBGL_DRIVERS_PATH: '${APPDIR}/usr/lib/i386-linux-gnu/dri:${APPDIR}/usr/lib/x86_64-linux-gnu/dri:${LIBGL_DRIVERS_PATH}'
APPDIR_LIBC_VERSION: 'x.xx'
Expand Down

0 comments on commit b22c6b0

Please sign in to comment.