Skip to content

Commit

Permalink
fixup! fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
delbetu committed May 4, 2024
1 parent ae43d69 commit 74e7c51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions @ruby/wasm-wasi/dist/browser-patch.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@
this.guest.rubyInit();
this.guest.rubySysinit(c_args);
this.guest.rubyOptions(c_args);
// this.eval(`require "bundle/setup"`);
// PATCH
this.eval(`require "bundler/setup"`);
}
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end
task default: ["app.wasm"]

desc "Build site into /dist"
file :build_site => ["app.wasm"] do
task :build_site do
rm_rf "dist"
mkdir "dist"
cp_r "assets", "dist"
Expand Down
Binary file modified app.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@

<main>
<nav id="controls">
<img src="/assets/prawn-logo.png" height="65px" />
<img src="assets/prawn-logo.png" height="65px" />
<h1>Prawn BOX</h1>
<button type="button" id="evalRb">Generate PDF</button>
</nav>
Expand All @@ -207,7 +207,7 @@ <h1>Prawn BOX</h1>

<!-- WARNING: patching script -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@latest/dist/browser.umd.js"></script> -->
<script src="/@ruby/wasm-wasi/dist/browser-patch.umd.js"></script>
<script src="@ruby/wasm-wasi/dist/browser-patch.umd.js"></script>

<!-------------------- ERROR POPUP -------------------->
<script>
Expand Down

0 comments on commit 74e7c51

Please sign in to comment.