mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-14 16:51:04 +00:00
Rename resolc_packed to resolc_web
This commit is contained in:
@@ -87,7 +87,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.js
|
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.js
|
||||||
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.wasm
|
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc.wasm
|
||||||
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc_loader.js
|
${{ env.REVIVE_WASM_INSTALL_DIR }}/resolc_web.js
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
test-revive-wasm:
|
test-revive-wasm:
|
||||||
|
|||||||
+3
-3
@@ -10,7 +10,7 @@ const RESOLC_WASM_TARGET_DIR = path.join(
|
|||||||
"../target/wasm32-unknown-emscripten/release",
|
"../target/wasm32-unknown-emscripten/release",
|
||||||
);
|
);
|
||||||
const RESOLC_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc.js");
|
const RESOLC_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc.js");
|
||||||
const RESOLC_LOADER_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc_loader.js");
|
const RESOLC_WEB_JS = path.join(RESOLC_WASM_TARGET_DIR, "resolc_web.js");
|
||||||
|
|
||||||
const resolcJs = fs.readFileSync(RESOLC_JS, "utf-8");
|
const resolcJs = fs.readFileSync(RESOLC_JS, "utf-8");
|
||||||
|
|
||||||
@@ -44,8 +44,8 @@ minify(packedJsContent)
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.writeFileSync(RESOLC_LOADER_JS, minifiedJs.code, "utf-8");
|
fs.writeFileSync(RESOLC_WEB_JS, minifiedJs.code, "utf-8");
|
||||||
console.log(`Combined script written to ${RESOLC_LOADER_JS}`);
|
console.log(`Combined script written to ${RESOLC_WEB_JS}`);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error("Minification failed:", err);
|
console.error("Minification failed:", err);
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../../../target/wasm32-unknown-emscripten/release/resolc_loader.js
|
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
../../../target/wasm32-unknown-emscripten/release/resolc_web.js
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
importScripts("./resolc_loader.js");
|
importScripts("./resolc_web.js");
|
||||||
|
|
||||||
// Handle messages from the main thread
|
// Handle messages from the main thread
|
||||||
onmessage = async function (e) {
|
onmessage = async function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user