diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aee2a841..0c2bc13f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -481,6 +481,32 @@ jobs: arch: ${{matrix.architecture}} script: "adb push build/${{matrix.preset}}/artifacts/* /data/local/tmp && adb shell \"cd /data/local/tmp && export LD_LIBRARY_PATH=. && chmod +x ./analyzer && EMULATOR_ICICLE=${{ matrix.emulator == 'Icicle' }} ./analyzer -e ./root c:/test-sample.exe\"" + page: + name: Page + runs-on: ubuntu-latest + #needs: [build] + permissions: + contents: read + pages: write + id-token: write + steps: + - name: Checkout Source + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./page + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + summary: name: Pipeline Summary runs-on: ubuntu-24.04 diff --git a/page/bigboiii.webp b/page/bigboiii.webp new file mode 100644 index 00000000..15089347 Binary files /dev/null and b/page/bigboiii.webp differ diff --git a/page/emulator.js b/page/emulator.js new file mode 100644 index 00000000..7a007d5e --- /dev/null +++ b/page/emulator.js @@ -0,0 +1,35 @@ +onmessage = async (event) => { + const data = event.data; + if (data.message == "run") { + runEmulation(data.data); + } +}; + +function logLine(text) { + postMessage(text); +} + +function runEmulation(filesystem) { + globalThis.Module = { + arguments: ["-b", "-c", "-e", "./root", "c:/lul.exe",], + onRuntimeInitialized: function () { + filesystem.forEach(e => { + if (e.name.endsWith("/")) { + FS.mkdir(e.name.slice(0, -1)); + } else { + const dirs = e.name.split("/") + const file = dirs.pop(); + const buffer = new Uint8Array(e.data); + FS.createDataFile("/" + dirs.join('/'), file, buffer, true, true); + } + }) + }, + print: logLine, + printErr: logLine, + postRun: () => { + self.close(); + }, + }; + + importScripts('./analyzer.js?1'); +} diff --git a/page/index.html b/page/index.html new file mode 100644 index 00000000..0256f824 --- /dev/null +++ b/page/index.html @@ -0,0 +1,431 @@ + + + +
+ + +