Skip to content

Commit

Permalink
fix: token replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce committed Sep 7, 2024
1 parent 4b80667 commit 9e50f26
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ const krak = {
var index = {
name: "krak",
description: "A script binding for the Krakatau Java decompiler.",
version: "1.1.0",
version: "1.1.1",
load(context) {
context.disasm.add(krak);
},
Expand Down
2 changes: 1 addition & 1 deletion dist/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function generateUUID() {
}

const krakScript = `from pyodide.http import pyfetch
response = await pyfetch("https://cdn.jsdelivr.net/gh/run-slicer/script-krak@${__SCRIPT_VERSION__}/dist/krak.zip")
response = await pyfetch("https://cdn.jsdelivr.net/gh/run-slicer/script-krak@${"1.1.1"}/dist/krak.zip")
await response.unpack_archive()
from Krakatau.java.visitor import DefaultVisitor
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "script-krak",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",
"author": "run-slicer",
"license": "GPL-3.0-only",
Expand Down
9 changes: 8 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ export default [
dir: "dist",
format: "esm",
},
plugins: [nodeResolve(), typescript()],
plugins: [
nodeResolve(),
typescript(),
replace({
preventAssignment: true,
__SCRIPT_VERSION__: JSON.stringify(version),
}),
],
external: [/^https:\/\/.+$/g],
},
] satisfies RollupOptions[];

0 comments on commit 9e50f26

Please sign in to comment.