Ross Goldberg
96243f29f8
Replace $(git rev-parse "${GITHUB_REF_NAME}")
with ${GITHUB_SHA}
in tag-pushed.yml
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:21 -05:00
Ross Goldberg
4f96d96d2d
Move DEFAULT_BRANCH_NAME
environment variable from top level to
🚰 Bump mas-cli/tap/mas formula
step.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:21 -05:00
Ross Goldberg
42ab8a579e
Inline single PRERELEASE
use in tag-pushed.yml
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:21 -05:00
Ross Goldberg
4fb49d92ed
Replace TAG_NAME
with GITHUB_REF_NAME
in tag-pushed.yml
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
c43b1ba313
Don't call script/bootstrap
from tag-pushed.yml
as it isn't necessary for building.
...
Improve `script/bootstrap` documentation.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
0095832667
Rename release
workflow as pushed-tag
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
e4795b3dba
Improve README.md
:
...
No longer include `script/bootstrap` in build instructions since it is only necessary for linting & formatting.
Minor text improvements.
Improve URLs.
Replace `and` with `&`.
Improve example console output.
Wrap long line.
Improve spacing.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
9cab3e4498
Replace Package/Distribution.plist
with a heredoc in script/package
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
8994505fec
Improve script/package
:
...
Rename `mas.pkg` as `mas-${version}.pkg`.
Use `/usr/local/bin` for `--install-location` instead of having executable stored in `.pkg` under `mas_components.pkg/Payload/usr/local/bin`.
Do not output SHA-256 of `.pkg`.
Move `script/build …` earlier.
Rename variables & temporary folders to follow Apple's terminology.
Update comments.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:20 -05:00
Ross Goldberg
d5f9dba6b2
Make Package/Distribution.plist
as close to .pkg contents as possible.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
00a7c0270c
release.yml
: run iff a tag is pushed to the mas-cli/mas
repo.
...
Delete any tags that lack a valid signature.
Delete any version tags that are not on the main branch.
Create a draft GitHub Release iff the package installer builds properly.
Do not bump the `homebrew-core` `mas` formula.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
aa150fbd30
release.yml
: run job iff repo is mas-cli/mas
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
15053e6d2b
release.yml
: add & use PRERELEASE
workflow-level env var.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
7751dda90e
release.yml
: remove *_TOKEN
env vars to check if they're necessary.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
66826868ce
release.yml
: rename RELEASE_TAG
as TAG_NAME
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
f322e00acb
Simplify zsh scripts.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
a37847866c
Remove debug output & associated env vars from .github/workflows/release.yml
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
6b3ed950f5
Remove act dependency & .actrc
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:19 -05:00
Ross Goldberg
98eb15982e
Move printf earlier in scripts.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
3848da7732
Improve script/build
:
...
- Remove `--universal` argument.
- Do not disable sandbox.
- Do not disable manifest cache.
- Pass script arguments to `swift build`.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
181bf05c8a
script/bootstrap
: install Homebrew if not already installed.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
b484dcf12a
Improve class-dump
installation instructions.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
c950af31de
GitHub Workflows: reorder workflow parts, improve step emojis, update comments & improve spacing.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
0dadaf6bda
script/clean
: rm -f Sources/mas/Package.swift
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
f4f5f18ec7
Add & use script/_setup_script
to configure all zsh scripts.
...
Update shebangs.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:18 -05:00
Ross Goldberg
5a29bb7b31
Switch scripts from bash to zsh.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:17 -05:00
Ross Goldberg
5d9abd352a
Remove shfmt because it cannot work with zsh.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ben Chatelain
b4452adcc0
🔥 Remove DRY_RUN var
2024-12-20 13:27:16 -05:00
Ross Goldberg
2f6873be6f
brew bundle no longer generates Brewfile.lock.json
.
...
Allow `script/bootstrap` to accept any arguments for `brew bundle install`.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
50f43333dd
Filter out boilerplate output from script/test
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
1cf85be5a2
Filter out boilerplate prettier
output from script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
2061d88654
Filter out boilerplate swiftformat
output from script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
6913bf6d5d
Make swiftlint
--quiet
in script/format
.
...
Remove useless `--strict` from `swiftlint` in `script/format`.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
16c5a26ca4
Make swiftformat
--strict
in script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:16 -05:00
Ross Goldberg
9ab9277a39
Change Swift formatter emoji to fix output spacing issues in script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
c064c91b91
Rename linter
as formatter
in script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
1fe3ca434b
Remove incorrect comment from script/format
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
a0f59fcc70
Use markdownlint
on all *.md
files.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
0870111ca7
Remove unnecessary swiftlint
output filtering from script/lint
.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
403a3f838d
Remove unnecessary single quotes from bash scripts.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
292771a1a6
Output full git describe --tags
to indicate number of commits since tag & current revision for local (i.e. non-release builds), since releases should all be for a version tagged revision.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:15 -05:00
Ross Goldberg
39ce6b9eda
Upgrade swiftformat to 0.55.2, prettier to 3.4.1, & markdownlint-cli to 0.43.0.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
800633eea5
The swift-format
formula will only install on macOS 13+.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
befb45868f
Cleanup Swift files.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
fed396c072
No longer git ignore Sources/MasKit/Package.swift
since the MasKit
target has been merged into mas
target.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
58fd1e1905
Improve script modularity:
...
`script/package` calls
`script/build --universal` instead of requiring the latter to be called before the former.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
b6613bb1ba
Update actions/checkout@v4
settings:
...
Should only release revisions that have version tags on them, so should only need a single commit.
`ref:` should default to the reference for the event, which should be `github.event.release.tag_name`, so shouldn't need to explicitly set it.
If any of these changes cause problems, will back them out.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:14 -05:00
Ross Goldberg
4ae40a9acd
Ensure bash scripts don't use unset variables.
...
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:13 -05:00
Ross Goldberg
1ef95d0791
Delete script/install
.
...
Requires corresponding commits to `homebrew-core/mas` & `mas-cli/tap/mas` formulae.
Rename `dstroot` variable as `distributions_root` in `script/package`.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:13 -05:00
Ross Goldberg
09c1abfe95
Delete Makefile
& seemingly unused bash scripts.
...
Remove `trash` dependency.
Partial #638
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-12-20 13:27:13 -05:00