Commit graph

260 commits

Author SHA1 Message Date
Ross Goldberg
88f2bffdf5
Remove unused $echo variable.
Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-15 13:08:46 -05:00
Ross Goldberg
e62482cf42
clean seems unnecessary in bootstrap.
Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-15 13:08:46 -05:00
Ross Goldberg
19e4f6b6d6
mise is installed via brew bundle.
Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-15 13:08:44 -05:00
Ross Goldberg
8617c75ace
Fix typo in argument check in script/build.
Partial #506

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-07 09:30:55 -05:00
Ben Chatelain
c314af5167
🩹 Remove duplicate v in tap's root_url 2024-11-03 13:43:21 -07:00
Ben Chatelain
58f9fbcc8c
🚨 Remove unused vars 2024-11-03 12:11:41 -07:00
Ben Chatelain
7d0f0a8fbd
🍎 Add macOS sequoia to bottle script 2024-11-03 10:59:31 -07:00
Ben Chatelain
35433359a9
🚚 Update path to swift release build dir 2024-11-03 10:45:46 -07:00
Ben Chatelain
750930e01a
Merge branch 'main' into releases/release-1.8.7
# Conflicts:
#	.swiftlint.yml
#	script/bottle
2024-11-02 12:08:50 -06:00
Ross Goldberg
f83412bba1
Increase minimum macOS version to 10.13, since Swift 5.7 is already used, which requires Xcode 14+ to compile, which only supports macOS deployment targets 10.13+.
Use Swift 5.7.1, which is the newest version of Swift 5.7.

Resolve #578

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-27 14:01:45 -04:00
Ross Goldberg
f9ce4136e4
Restore git describe check in version.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-27 07:26:46 -04:00
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