Commit graph

249 commits

Author SHA1 Message Date
Ross Goldberg
e9fcf2b254
Merge branch 'main' into upstream/releases/release-1.8.7
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>

# Manual Merge Cleanup:
#	.actrc
#	.github/workflows/pr-checks.yml
#	.github/workflows/release.yml
#	Brewfile
#	script/test
#	script/version_bump

# Conflicts:
#	.github/workflows/build-test.yml
#	.gitignore
#	.swiftlint.yml
#	Brewfile.lock.json
#	Package.resolved
#	Sources/mas/Package.swift
#	Tests/masTests/.swiftlint.yml
#	script/bootstrap
#	script/build
#	script/format
#	script/lint
#	script/uninstall
#	script/version
2024-10-27 01:25:38 -04:00
Ben Chatelain
8bbf5525b4
🔨 Use MAS_VERSION in root_url 2024-10-26 15:08:06 -06:00
Ben Chatelain
64961e7c81
🔨 Fix root_url replacement syntax 2024-10-26 15:03:46 -06:00
Ben Chatelain
7ecbf60fb8
🔨 Update version in root_url 2024-10-26 14:57:33 -06:00
Ben Chatelain
3332773c1b
🔊 Echo commands in bottle script 2024-10-26 14:23:59 -06:00
Ben Chatelain
635898dd18
🔨 Change style to use file path
Removed brew list command as that only works with installed formulae
2024-10-26 14:23:10 -06:00
Ben Chatelain
5b8fed8bee
🔨 Remove install and enhance audit command 2024-10-26 14:07:17 -06:00
Ross Goldberg
cab684ba60
Install swiftlint via Brewfile if macOS >= 13 (install breaks on macOS <= 12).
Only install `peripheryapp/periphery` tap if macOS >= 13 (install breaks on macOS <= 12).

Resolve #594

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-24 07:49:43 -04:00
Ross Goldberg
9e3b079ec8
Update lint.
- Change Swift bird emoji to ensure consistent spacing.

- Suppress output on GitHub runners.

- Simplify `grep` patterns.

Partial #594

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-24 07:46:50 -04:00
Ross Goldberg
3eaffa5c3e
Improve DocC.
Partial #592

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-23 06:17:43 -04:00
Ben Chatelain
aa394e489e
🩹 Install formula so we can audit it 2024-10-20 12:09:37 -06:00
Ross Goldberg
f08f0a37d7
Improve bootstrap.
Partial #580

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-17 21:39:56 -04:00
Ross Goldberg
f06fc7bb75
Use trash -F instead of trash to facilitate better undelete.
Resolve #576

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-15 08:13:54 -04:00
Ross Goldberg
d413d8cfa1
Move MasKit module to mas.
Move MasKitTests module to masTests.

Rename MasKit enum as Mas.

Upgrade swift-tools-version from 5.3 to 5.6.1.

swift-tools-version 5.5+ is necessary to allow test code to import executable target code,
to allow MasKit library code to be moved into the mas executable.

Upgrade to swift-tools-version to 5.6.1 instead of to 5.5 because they support all the same macOS versions.

Standardize comments.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-14 03:44:03 -04:00
Ross Goldberg
466ea67194
Improve scripts: bootstrap, build, format, lint, test & version.
Allow them to be run from any directory.

Call version from lint & test to create Package.swift with version info.

Fail when accessing unset variables.

Improve variable names.

Fix lint issues.

Improve lint & format scripts.

Don't require user input to continue linting.

Much cleaner lint output.

Reorder lint output.

Get swift-format from Brewfile instead of from Package.swift:

 - Speeds up linting.
 - Properly models dependency (not a code dependency).
 - swift-format depends on an old version of swift-argument-parser. Will refactor to use SAP soon.

Include some improvements from 1.8.7 PR.

Other scripts need improvement, too.

Resolve #545

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-05 20:33:45 -04:00
Ben Chatelain
d202441a63
♻️ Add tap and re-clone with token 2024-08-03 14:47:08 -06:00
Ben Chatelain
0578f0c850
♻️ Pull tap git commands up into workflow 2024-07-31 21:04:54 -06:00
Ben Chatelain
52c96db818
♻️ Extract git push from brew_tap_update script 2024-07-30 21:56:07 -06:00
Ben Chatelain
53319d911d
♻️ Extract PR creation from brew_tap_update script 2024-07-30 21:51:32 -06:00
Ben Chatelain
91f74918d8
🔥 Remove PR creation from brew_core_update 2024-07-30 21:36:33 -06:00
Ben Chatelain
94258eaf64
👷🏻‍♀️ Push tap branch and add details to PR 2024-07-30 21:34:30 -06:00
Ben Chatelain
3b5d335fca
🔧 Disable dry-run in brew_tap_update 2024-07-30 21:28:20 -06:00
Ben Chatelain
97fa10f02c
👷🏻‍♀️ Rework and rename prepare-release job 2024-07-30 17:53:50 -06:00
Ben Chatelain
76d380d502
👷🏼‍♂️ Add version-update job to release workflow
Need to call version_bump before both homebrew jobs
2024-07-29 18:05:50 -06:00
Ben Chatelain
aa4ce7cdde
🔥 Remove --commit option 2024-03-31 15:13:30 -06:00
Ben Chatelain
4c01f14255
🔨 Change brew_core_update dry run to only run bump-formula-pr once
dry_run
2024-03-31 15:10:00 -06:00
Ben Chatelain
b227aca6dc
🔊 Log commands in homebrew scripts 2024-03-31 15:02:37 -06:00
Ben Chatelain
d3066609d5
🔨 Set PREFIX to /usr/local in install script
Fixes install script when executed in sandbox
==> script/install /opt/homebrew/Cellar/mas/1.8.7-beta.2
script/install: line 16: brew: command not found
2024-03-31 14:46:52 -06:00
Ben Chatelain
b33f7abca4
🚨 Quote variables 2024-03-31 14:40:41 -06:00
Ben Chatelain
34ab84f30e
🚨 Format scripts and yaml 2024-03-31 11:05:04 -06:00
Ben Chatelain
87fd066403
🚨 Remove unused dry_run variable from brew_tap_update script 2024-03-31 10:51:46 -06:00
Ben Chatelain
28dcc76ec1
🚨 Resolve linter errors 2024-03-31 10:11:02 -06:00
Ben Chatelain
9ae76659a3
🔇 Remove getops logging 2024-03-30 11:40:42 -06:00
Ben Chatelain
246636cb10
🔥 Remove Finder open command from bottle script 2024-03-30 11:39:32 -06:00
Ben Chatelain
1b7d6fd81b
🔨 Add frozen (-f) option to bootstrap script
GHA jobs use -f so pinned version of tools are installed, if necessary.

New bootstrap-update make target upgrades tools
2024-03-30 11:03:55 -06:00
Ben Chatelain
37cf3116b1
🔨 Invoke bottle script from brew_tap_update 2024-03-10 19:53:07 -06:00
Ben Chatelain
20ba23e247
🔥 Remove core logic from brew_tap_update 2024-03-10 19:48:25 -06:00
Ben Chatelain
b49d9db2dc
🔥 Remove tap logic from brew_core_update 2024-03-10 19:48:06 -06:00
Ben Chatelain
c0950b130b
♻️ Split workflow into 4 jobs 2024-03-10 19:33:50 -06:00
Ben Chatelain
9a094b1684
🔨 Revert core formula after testing 2024-03-10 12:22:15 -06:00
Ben Chatelain
b6fa1c8a12
🔨 Validate core formula
instead of tap
2024-03-10 11:49:14 -06:00
Ben Chatelain
b8803ba230
🔨 Use real revision, write brew formula before testing 2024-03-10 11:43:13 -06:00
Ben Chatelain
76c8314004
🚩 Pass DRY_RUN to brew_formula_update 2024-03-10 11:19:12 -06:00
Ben Chatelain
d84dd58088
🚩 Add dry run support to brew_formula_update 2024-03-10 10:36:24 -06:00
Ben Chatelain
11734da12a
👷🏻‍♀️ Create PR on mas 2024-03-10 09:23:53 -06:00
Ben Chatelain
1fd27c1239
👷🏻‍♂️ Derive MAS_VERSION from release, pass to script 2024-03-10 09:09:05 -06:00
Ben Chatelain
da8142dc99
🔨 Trigger version_bump, create branch, commit in brew_formula_update 2024-03-10 09:03:03 -06:00
Ben Chatelain
a0e941799d
🔨 Write new version in brew formulae 2024-03-10 08:07:39 -06:00
Ben Chatelain
67e678452f
🔨 Add version_bump script
Moved swift package manifest manipulation out of version script
2024-03-09 11:23:14 -07:00
Ben Chatelain
a8868300f5
🔨 Add brew_build_interactive script 2024-03-09 10:50:48 -07:00