Skip to content

Commit 9e171c8

Browse files
committed
Fix build script.
- Avoid MacOS-specific paths - Avoid Fish-specific context and syntax - Ensure the script can execute from any location
1 parent e06d35d commit 9e171c8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

scripts/build

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
#!/opt/homebrew/bin/fish
2-
aiken build
1+
#!/usr/bin/env bash
32

4-
aiken blueprint apply --validator "marlowe.execute" --out plutus.json 581c(cat plutus.json | jq -r '.validators[1].hash')
3+
# Always execute from within the parent folder.
4+
cd $(dirname -- "${BASH_SOURCE[0]}")/..
55

6-
aiken blueprint convert --validator "marlowe.role_payout" > ../marlowe-plutus/marlowe-plutus/payout.plutus
6+
aiken build --uplc
77

8-
aiken blueprint convert --validator "marlowe.execute" > ../marlowe-plutus/marlowe-plutus/semantics.plutus
8+
aiken blueprint apply --validator "marlowe.execute" --out plutus.json "581c$(cat plutus.json | jq -r '.validators[1].hash')"
9+
10+
aiken blueprint convert --validator "marlowe.role_payout" > artifacts/marlowe.role_payout.plutus
11+
12+
aiken blueprint convert --validator "marlowe.execute" > artifacts/marlowe.execute.plutus

0 commit comments

Comments
 (0)