Skip to content

Commit

Permalink
Improve script modularity:
Browse files Browse the repository at this point in the history
`script/package` calls
`script/build --universal` instead of requiring the latter to be called before the former.

Partial #638

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Nov 19, 2024
1 parent de4d9ab commit f06fedd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ jobs:
run: |
script/bootstrap -f
- name: 🏗️ Build universal executable
run: |
script/build --universal
- name: 📦 Package mas.pkg
- name: 📦 Build universal executable & package it in mas.pkg
run: |
script/package
Expand Down
2 changes: 2 additions & 0 deletions script/package
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ distribution_package="${build_dir}/mas.pkg"
distributions_root="${build_dir}/distributions"
version="$(script/version)"

script/build --universal

ditto -v "${build_dir}/apple/Products/Release/mas" "${distributions_root}/usr/local/bin/mas"

printf $'==> 📦 Assembling installer package for mas %s\n' "${version}"
Expand Down

0 comments on commit f06fedd

Please sign in to comment.