Skip to content

Commit be0bb6e

Browse files
committed
lets try this
1 parent 412f6e2 commit be0bb6e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/il2cpp.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ jobs:
107107
unzip -q patcher.zip -d unity-application-patcher
108108
chmod +x unity-application-patcher/UnityApplicationPatcherCLI
109109
export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/unity-application-patcher/Data/StreamingAssets/Android/SDK/platform-tools/lib64"
110+
# The patcher CLI is itself a Unity-built binary and segfaults without a display to open a window against
111+
sudo apt-get update && sudo apt-get install -y xvfb
110112
# versionCode 0 means ignore
111-
unity-application-patcher/UnityApplicationPatcherCLI -android -versionCode 0 -applicationPath "$apk"
113+
xvfb-run -a unity-application-patcher/UnityApplicationPatcherCLI -android -versionCode 0 -applicationPath "$apk"
112114
113115
patched="${apk%.apk}.patched.apk"
114116
unzip -p "$patched" lib/arm64-v8a/libunity.so > "build/${{ matrix.target }}/libunity.so"

0 commit comments

Comments
 (0)