Skip to content

Commit

Permalink
Add cherry-pick script
Browse files Browse the repository at this point in the history
  • Loading branch information
infrmtcs committed Oct 25, 2024
1 parent b648a60 commit e21371e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ deno.lock
test.ts

.direnv/
browser/
artifacts/
20 changes: 20 additions & 0 deletions cherry-pick.sh
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"

0 comments on commit e21371e

Please sign in to comment.