diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/build.yml similarity index 98% rename from .github/workflows/c-cpp.yml rename to .github/workflows/build.yml index 9bd355d..31e941b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Build on: push: diff --git a/.github/workflows/wrapper-qemu.yml b/.github/workflows/wrapper-qemu.yml new file mode 100644 index 0000000..666067c --- /dev/null +++ b/.github/workflows/wrapper-qemu.yml @@ -0,0 +1,47 @@ +name: wrapper-qemu + +on: + workflow_run: + workflows: ["Build"] + types: [completed] + +jobs: + on-success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - uses: actions/checkout@v4 + + - name: Download wrapper-qemu basic image + run: wget https://github.com/WorldObservationLog/wrapper/releases/download/wrapper-qemu/wrapper.qcow2 + + - name: Mount image + run: | + sudo apt-get install -y qemu-utils + sudo modprobe nbd max_part=8 + sudo qemu-nbd --connect=/dev/nbd0 wrapper.qcow2 + sudo mkdir /mnt/wrapper + sudo mount /dev/nbd0p3 /mnt/wrapper/ + + - name: Download latest artifact + uses: dawidd6/action-download-artifact@v6 + with: + github_token: ${{secrets.ACTION_TOKEN}} + run_id: ${{ github.event.workflow_run.id }} + + - name: Copy wrapper to image + run: | + mv Wrapper.x86_64.* wrapper + sudo mv wrapper /mnt/wrapper/root/wrapper + sudo chmod +x /mnt/wrapper/root/wrapper/wrapper + + - name: Unmount image + run: | + sudo umount /mnt/wrapper/ + sudo qemu-nbd --disconnect /dev/nbd0 + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: wrapper-qemu + path: wrapper.qcow2 diff --git a/README.md b/README.md index 0fc705a..f8d97c9 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ ## Wrapper -No need for an Android emulator to decrypt ALAC files. This solution works on all files from Anonymous. +No need for an Android emulator to decrypt ALAC files. All files from anonymous. ### Recommended Environment +#### x86_64 only For best results, it's recommended to use **Windows Subsystem for Linux (WSL)**. ---