ci: switch to local instance mode
Some checks failed
/ Build Windows (push) Has been cancelled

This commit is contained in:
世界观察日志
2025-10-19 11:55:50 +08:00
parent 6c8e1086da
commit 139c13bf21
2 changed files with 15 additions and 4 deletions

View File

@@ -22,6 +22,7 @@ jobs:
run: |
Copy-Item config.example.toml config.toml
(Get-Content config.toml) -replace 'url = "127.0.0.1:8080"','url = "wm.wol.moe"' -replace 'secure = false','secure = true' | Set-Content config.toml
(Get-Content config.toml) -replace 'enable = false','enable = true' | Set-Content config.toml
@'
$env:PATH="$(Split-Path -Parent $MyInvocation.MyCommand.Path)\deps;"
@@ -45,7 +46,17 @@ jobs:
.\7z\7z.exe e .\ffmpeg.7z ffmpeg.exe -r "-o."
Invoke-WebRequest -Uri https://www.bok.net/Bento4/binaries/Bento4-SDK-1-6-0-641.x86_64-microsoft-win32.zip -OutFile Bento4-tools.zip
.\7z\7z.exe e .\Bento4-tools.zip mp4extract.exe mp4edit.exe mp4decrypt.exe -r "-o."
rm -Recurse Bento4-tools.zip, 7z, 7z.exe, 7z-installer.exe, ffmpeg.7z, gpac-installer.exe, GPAC
Invoke-WebRequest -Uri https://qemu.weilnetz.de/w64/qemu-w64-setup-20250826.exe -OutFile qemu-installer.exe
.\7z\7z.exe x qemu-installer.exe -oqemu
cp qemu/qemu-system-x86_64.exe, qemu/*.dll .
rm -Recurse Bento4-tools.zip, 7z, 7z.exe, 7z-installer.exe, ffmpeg.7z, gpac-installer.exe, GPAC, qemu-installer.exe, qemu
- name: Prepare assets
run: |
Invoke-WebRequest -Uri https://nightly.link/WorldObservationLog/wrapper-manager/workflows/wrapper-manager-image/main/wrapper-manager-image.zip -OutFile wrapper-manager-image.zip
Expand-Archive -Path wrapper-manager-image.zip -DestinationPath assets
rm wrapper-manager-image.zip
- name: Upload CLI artifact
uses: actions/upload-artifact@v4
with:

View File

@@ -8,14 +8,14 @@ secure = false
[localInstance]
# Use qemu to launch wrapper-manager
# This setting will overwrite instance setting
enable = true
enable = false
# Use WHPX on Windows and KVM on Linux
# For Windows users, run `Get-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform` to check if WHPX enabled
# For Linux users, run `sudo kvm-ok` to check if KVM supported
enableHardwareAcceleration = true
enableHardwareAcceleration = false
memorySize = "512M"
# Waiting time for wrapper-manager to start
timeout = 60
timeout = 120
[region]
# The language of song metadata. Influence song title, author and other information.