Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit 639f50b

Browse files
committed
add auto make qemu
1 parent 57dd342 commit 639f50b

3 files changed

Lines changed: 50 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: C/C++ CI
1+
name: Build
22

33
on:
44
push:

.github/workflows/wrapper-qemu.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: wrapper-qemu
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build"]
6+
types: [completed]
7+
8+
jobs:
9+
on-success:
10+
runs-on: ubuntu-latest
11+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Download wrapper-qemu basic image
16+
run: wget https://github.com/WorldObservationLog/wrapper/releases/download/wrapper-qemu/wrapper.qcow2
17+
18+
- name: Mount image
19+
run: |
20+
sudo apt-get install -y qemu-utils
21+
sudo modprobe nbd max_part=8
22+
sudo qemu-nbd --connect=/dev/nbd0 wrapper.qcow2
23+
sudo mkdir /mnt/wrapper
24+
sudo mount /dev/nbd0p3 /mnt/wrapper/
25+
26+
- name: Download latest artifact
27+
uses: dawidd6/action-download-artifact@v6
28+
with:
29+
github_token: ${{secrets.ACTION_TOKEN}}
30+
run_id: ${{ github.event.workflow_run.id }}
31+
32+
- name: Copy wrapper to image
33+
run: |
34+
mv Wrapper.x86_64.* wrapper
35+
sudo mv wrapper /mnt/wrapper/root/wrapper
36+
sudo chmod +x /mnt/wrapper/root/wrapper/wrapper
37+
38+
- name: Unmount image
39+
run: |
40+
sudo umount /mnt/wrapper/
41+
sudo qemu-nbd --disconnect /dev/nbd0
42+
43+
- name: Upload artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: wrapper-qemu
47+
path: wrapper.qcow2

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Wrapper
22

3-
No need for an Android emulator to decrypt ALAC files. This solution works on all files from Anonymous.
3+
No need for an Android emulator to decrypt ALAC files. All files from anonymous.
44

55
### Recommended Environment
6+
#### x86_64 only
67
For best results, it's recommended to use **Windows Subsystem for Linux (WSL)**.
78

89
---

0 commit comments

Comments
 (0)