Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit 73a6d96

Browse files
Add '--with-mingw=clang' flag on wine, Some Fixes, Build RootFS with ArchLinux on Chroot
1 parent f4b1fdb commit 73a6d96

File tree

4 files changed

+50
-46
lines changed

4 files changed

+50
-46
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
name: Build and Release MiceWine RootFS
22

33
on:
4+
push:
5+
branches: "*"
46
workflow_dispatch:
57

68
jobs:
79
build:
810

9-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1012

1113
steps:
12-
- name: "Clone Repository"
13-
run: |
14-
git clone https://github.com/KreitinnSoftware/MiceWine-RootFS-Generator
1514

16-
- name: "Environment Preparation"
15+
- name: "Install ArchLinux"
1716
run: |
1817
sudo apt update
19-
sudo apt install -y python3 python3-pip cmake wget git p7zip build-essential pkg-config xmlto fop xsltproc llvm autoconf libxml-parser-perl bison flex glslang-tools
20-
pip3 install mako meson ninja docutils StrEnum
21-
sudo ln -sf ~/.local/bin/meson /usr/bin/meson
18+
sudo apt install -y arch-install-scripts wget
19+
sudo mkdir -p /mnt/
20+
21+
wget https://geo.mirror.pkgbuild.com/iso/2025.02.01/archlinux-bootstrap-x86_64.tar.zst
22+
23+
sudo tar -xf archlinux-bootstrap-x86_64.tar.zst
24+
sudo rm -f archlinux-bootstrap-x86_64.tar.zst
25+
sudo mv root.x86_64 /mnt/arch
26+
27+
sudo arch-chroot /mnt/arch bash -c "pacman-key --init && pacman-key --populate && sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist && sed -i "s/CheckSpace/#CheckSpace/g" /etc/pacman.conf && pacman -Syu --noconfirm base base-devel git cmake meson ninja bison flex python-pip wget python-mako python-pyyaml unzip 7zip glslang glib2-devel python-docutils xmlto fop libxslt python-docutils"
28+
29+
- name: "Checkout Repository"
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
2233

23-
- name: "Setup Basic Android (x86_64) Runtime Environment"
34+
- name: "Copy Repository to Chroot"
2435
run: |
25-
git clone https://github.com/termux/termux-docker.git
26-
sudo cp -rf termux-docker/system/x86 /system
27-
sudo chown -R $(whoami):$(whoami) /system
28-
sudo chmod 755 -R /system
36+
sudo cp -rf $PWD /mnt/arch/MiceWine-RootFS-Generator
2937
3038
- name: "Download Latest Release Rat Packages"
3139
run: |
32-
cd MiceWine-RootFS-Generator
3340
curl -LO# https://github.com/KreitinnSoftware/MiceWine-RootFS-Generator/releases/download/$(curl -s https://api.github.com/repos/KreitinnSoftware/MiceWine-RootFS-Generator/releases | grep tag_name -m 1 | cut -d ":" -f 2 | sed "s/\"//g" | sed "s/,//g" | sed "s/ //g")/MiceWine-Packages.zip || true
34-
unzip -o MiceWine-Packages.zip -d built-pkgs || true
41+
sudo unzip -o MiceWine-Packages.zip -d /mnt/arch/MiceWine-RootFS-Generator/built-pkgs || true
42+
rm -f MiceWine-Packages.zip
43+
44+
- name: "Setup Basic Android (x86_64) Runtime Environment (Required for Building x86_64 glib)"
45+
run: |
46+
git clone https://github.com/termux/termux-docker.git
47+
sudo cp -rf termux-docker/system/x86 /mnt/arch/system
48+
sudo chown -R $(whoami):$(whoami) /mnt/arch/system
49+
sudo chmod 755 -R /mnt/arch/system
3550
3651
- name: "Start Building (x86_64)"
3752
run: |
38-
cd MiceWine-RootFS-Generator
39-
./build-all.sh x86_64 --ci
40-
cd logs
41-
7z a /home/runner/MiceWine-RootFS-x86_64-Logs.zip
53+
sudo arch-chroot /mnt/arch bash -c "cd /MiceWine-RootFS-Generator && ./build-all.sh x86_64 --ci && cd logs && 7z a /MiceWine-RootFS-x86_64-Logs.zip"
4254
4355
- name: "Create RootFS File (x86_64)"
4456
run: |
45-
cd MiceWine-RootFS-Generator
46-
./create-rootfs.sh x86_64
47-
mv "MiceWine-RootFS-($(git rev-parse --short HEAD))-x86_64.rat" /home/runner/MiceWine-RootFS-x86_64.rat
57+
sudo arch-chroot /mnt/arch bash -c "cd /MiceWine-RootFS-Generator && ./create-rootfs.sh x86_64 && mv MiceWine-RootFS-\($(git rev-parse --short HEAD)\)-x86_64.rat /MiceWine-RootFS-x86_64.rat"
4858
4959
- name: "Clean (x86_64) RootFS"
5060
run: |
51-
cd MiceWine-RootFS-Generator
52-
sudo rm -rf /data/data/com.micewine.emu/files/usr workdir rootfs
61+
sudo rm -rf /mnt/arch/data /mnt/arch/MiceWine-RootFS-Generator/workdir /mnt/arch/MiceWine-RootFS-Generator/rootfs
5362
5463
- name: "Start Building (aarch64)"
5564
run: |
56-
cd MiceWine-RootFS-Generator
57-
./build-all.sh aarch64 --ci
58-
cd logs
59-
7z a /home/runner/MiceWine-RootFS-aarch64-Logs.zip
65+
sudo arch-chroot /mnt/arch bash -c "cd /MiceWine-RootFS-Generator && ./build-all.sh aarch64 --ci && cd logs && 7z a /MiceWine-RootFS-aarch64-Logs.zip"
6066
61-
- name: "Save All Rat Packages (for next build be faster)"
67+
- name: "Create RootFS File (aarch64)"
6268
run: |
63-
cd MiceWine-RootFS-Generator
64-
cd built-pkgs
65-
7z a /home/runner/MiceWine-Packages.zip
66-
cd ..
69+
sudo arch-chroot /mnt/arch bash -c "cd /MiceWine-RootFS-Generator && ./create-rootfs.sh aarch64 && mv MiceWine-RootFS-\($(git rev-parse --short HEAD)\)-aarch64.rat /MiceWine-RootFS-aarch64.rat"
6770
68-
- name: "Create RootFS File (aarch64)"
71+
- name: "Save Rat Packages"
6972
run: |
70-
cd MiceWine-RootFS-Generator
71-
./create-rootfs.sh aarch64
72-
mv "MiceWine-RootFS-($(git rev-parse --short HEAD))-aarch64.rat" /home/runner/MiceWine-RootFS-aarch64.rat
73+
sudo arch-chroot /mnt/arch bash -c "cd /MiceWine-RootFS-Generator/built-pkgs && 7z a /MiceWine-Packages.zip"
7374
7475
- name: "Get Short SHA"
7576
run: |
76-
cd MiceWine-RootFS-Generator
7777
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
7878
7979
- name: "Create Release"
@@ -83,9 +83,9 @@ jobs:
8383
tag_name: ${{ env.SHORT_SHA }}
8484
prerelease: true
8585
files: |
86-
/home/runner/MiceWine-RootFS-aarch64.rat
87-
/home/runner/MiceWine-RootFS-aarch64-Logs.zip
88-
/home/runner/MiceWine-Packages.zip
89-
/home/runner/MiceWine-RootFS-x86_64.rat
90-
/home/runner/MiceWine-RootFS-x86_64-Logs.zip
86+
/mnt/arch/MiceWine-RootFS-aarch64.rat
87+
/mnt/arch/MiceWine-RootFS-aarch64-Logs.zip
88+
/mnt/arch/MiceWine-Packages.zip
89+
/mnt/arch/MiceWine-RootFS-x86_64.rat
90+
/mnt/arch/MiceWine-RootFS-x86_64-Logs.zip
9191

packages/index

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ mesa-vulkan-wrapper-rev8
5959
mesa-vulkan-wrapper-rev9
6060
libadrenotools
6161
mesa-vulkan-wrapper
62+
mesa-vulkan-wrapper-adrenotools
6263
mesa-zink
6364
pcre2
6465
glib
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
PKG_VER=25.0.0-[gss]
1+
PKG_VER=25.0.0-[gss]-adrenotools
22
PKG_CATEGORY="VulkanDriver"
3-
PKG_PRETTY_NAME="Mesa Android Wrapper"
3+
PKG_PRETTY_NAME="Mesa Android Wrapper (AdrenoTools)"
44
VK_DRIVER_LIB="libvulkan_wrapper.so"
55

6+
BLACKLIST_ARCHITECTURE=x86_64
7+
68
GIT_URL=https://github.com/xMeM/mesa
79
GIT_COMMIT=e65c7eb6ee2f9903c3256f2677beb1d98464103f
8-
LDFLAGS="-L$PREFIX/lib -landroid-shmem"
10+
LDFLAGS="-L$PREFIX/lib -landroid-shmem -ladrenotools -llinkernsbypass"
911
MESON_ARGS="-Dgallium-drivers= -Dvulkan-drivers=wrapper -Dglvnd=disabled -Dplatforms=x11 -Dxmlconfig=disabled -Dllvm=disabled -Dopengl=false -Degl=disabled -Dzstd=enabled"

packages/wine/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CONFIGURE_ARGS="--enable-archs=i386,x86_64 \
2525
--with-gstreamer \
2626
--with-opengl \
2727
--with-gnutls \
28+
--with-mingw=clang \
2829
--without-xshm \
2930
--without-xxf86vm \
3031
--without-osmesa \

0 commit comments

Comments
 (0)