Skip to content

Commit

Permalink
Fix build script.
Browse files Browse the repository at this point in the history
  - Avoid MacOS-specific paths
  - Avoid Fish-specific context and syntax
  - Ensure the script can execute from any location
  • Loading branch information
KtorZ committed Apr 4, 2024
1 parent e06d35d commit 9e171c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions scripts/build
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/opt/homebrew/bin/fish
aiken build
#!/usr/bin/env bash

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

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

aiken blueprint convert --validator "marlowe.execute" > ../marlowe-plutus/marlowe-plutus/semantics.plutus
aiken blueprint apply --validator "marlowe.execute" --out plutus.json "581c$(cat plutus.json | jq -r '.validators[1].hash')"

aiken blueprint convert --validator "marlowe.role_payout" > artifacts/marlowe.role_payout.plutus

aiken blueprint convert --validator "marlowe.execute" > artifacts/marlowe.execute.plutus

0 comments on commit 9e171c8

Please sign in to comment.