forked from spacebudz/lucid
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ deno.lock | |
test.ts | ||
|
||
.direnv/ | ||
browser/ | ||
artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
git reset --hard fork/fork-base | ||
git cherry-pick fork/fork-base..fork/blueprint | ||
git cherry-pick fork/fork-base..fork/wallet-from-seed-utxos | ||
git cherry-pick fork/fork-base..fork/native-script | ||
|
||
deno task build | ||
rm -rf browser | ||
mkdir -p browser/web browser/esm/src/core/libs/cardano_message_signing browser/esm/src/core/libs/cardano_multiplatform_lib | ||
jq '.module = "./web/mod.js"' package.json >browser/package.json | ||
cp dist/web/mod.js browser/web/mod.js | ||
cp dist/esm/src/core/libs/cardano_message_signing/*.* browser/esm/src/core/libs/cardano_message_signing | ||
cp dist/esm/src/core/libs/cardano_multiplatform_lib/*.* browser/esm/src/core/libs/cardano_multiplatform_lib | ||
|
||
mkdir -p artifacts/node artifacts/browser | ||
npm pack ./dist --path-destination ./artifacts/node | ||
npm pack ./browser --path-destination ./artifacts/browser | ||
|
||
git commit -m "Rebuild artifact" |