mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68ecce6158 | ||
|
7aa4058128
|
|||
|
|
67ad73e500 | ||
| 8ac1f946dd | |||
|
|
cc38319b40 | ||
| e8885400e6 |
2
.github/.release-please-manifest.json
vendored
2
.github/.release-please-manifest.json
vendored
@@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "0.6.58"
|
||||
".": "0.6.61"
|
||||
}
|
||||
|
||||
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,5 +1,26 @@
|
||||
# Changelog
|
||||
|
||||
## [0.6.61](https://github.com/jimeh/build-emacs-for-macos/compare/v0.6.60...v0.6.61) (2025-08-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **emacs-31-builds:** disable fix-window-role patch after it was merged upstream ([7aa4058](https://github.com/jimeh/build-emacs-for-macos/commit/7aa405812802abbd2b78d8c98aee7fca23a2eab2))
|
||||
|
||||
## [0.6.60](https://github.com/jimeh/build-emacs-for-macos/compare/v0.6.59...v0.6.60) (2025-06-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **builder/cask:** correctly resolve version with build variant to release name ([#140](https://github.com/jimeh/build-emacs-for-macos/issues/140)) ([8ac1f94](https://github.com/jimeh/build-emacs-for-macos/commit/8ac1f946dde2342fa82aff7f90d2126bdd1f0057))
|
||||
|
||||
## [0.6.59](https://github.com/jimeh/build-emacs-for-macos/compare/v0.6.58...v0.6.59) (2025-06-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **builder/plan:** append test build name to release name ([#138](https://github.com/jimeh/build-emacs-for-macos/issues/138)) ([e888540](https://github.com/jimeh/build-emacs-for-macos/commit/e8885400e66bdb9304f99d9b072aa4dec4e83f4b))
|
||||
|
||||
## [0.6.58](https://github.com/jimeh/build-emacs-for-macos/compare/v0.6.57...v0.6.58) (2025-06-27)
|
||||
|
||||
|
||||
|
||||
@@ -1073,7 +1073,7 @@ class Build
|
||||
|
||||
# Enabled by default patches.
|
||||
|
||||
if (26..31).include?(effective_version)
|
||||
if (26..30).include?(effective_version)
|
||||
p << {
|
||||
url:
|
||||
'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
|
||||
@@ -1081,6 +1081,19 @@ class Build
|
||||
}
|
||||
end
|
||||
|
||||
# The fix-window-role patch was merged into Emacs 31 on 2025-07-31 with
|
||||
# commit 6e1054a40bf6df1429a2b16fdd0d7652dae4d537. Hence builds for commits
|
||||
# before then need the patch from the last commit in emacs-plus before it
|
||||
# was removed.
|
||||
if effective_version == 31 && meta[:date] < Time.parse('2025-07-31')
|
||||
p << {
|
||||
url:
|
||||
'https://github.com/d12frosted/homebrew-emacs-plus/raw/' \
|
||||
'3e95d573d5f13aba7808193b66312b38a7c66851/' \
|
||||
'patches/emacs-31/fix-window-role.patch'
|
||||
}
|
||||
end
|
||||
|
||||
if (27..31).include?(effective_version)
|
||||
p << {
|
||||
url:
|
||||
|
||||
@@ -146,7 +146,7 @@ func Create(ctx context.Context, opts *Options) (*Plan, error) { //nolint:funlen
|
||||
|
||||
plan.Build.Name += ".test." + testName
|
||||
plan.Release.Title = "Test Builds (" + testName + ")"
|
||||
plan.Release.Name = "test-builds"
|
||||
plan.Release.Name = "test-builds-" + testName
|
||||
|
||||
plan.Release.Prerelease = false
|
||||
plan.Release.Draft = true
|
||||
|
||||
@@ -4,7 +4,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Errors
|
||||
@@ -18,8 +17,9 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
stableVersion = regexp.MustCompile(`^\d+\.\d+(?:[a-z]+)?$`)
|
||||
stableGitRef = regexp.MustCompile(`^emacs-(\d+\.\d+(?:[a-z]+)?)$`)
|
||||
stableVersion = regexp.MustCompile(`^\d+\.\d+(?:[a-z]+)?(-\d+)?$`)
|
||||
pretestVersion = regexp.MustCompile(`-pretest(-\d+)?$`)
|
||||
stableGitRef = regexp.MustCompile(`^emacs-(\d+\.\d+(?:[a-z]+)?)$`)
|
||||
)
|
||||
|
||||
func VersionToName(version string) (string, error) {
|
||||
@@ -28,7 +28,7 @@ func VersionToName(version string) (string, error) {
|
||||
}
|
||||
|
||||
if stableVersion.MatchString(version) ||
|
||||
strings.HasSuffix(version, "-pretest") {
|
||||
pretestVersion.MatchString(version) {
|
||||
return "Emacs-" + version, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,27 @@ func TestVersionToName(t *testing.T) {
|
||||
},
|
||||
want: "Emacs.2021-07-01.1b88404.master",
|
||||
},
|
||||
{
|
||||
name: "nightly with variant",
|
||||
args: args{
|
||||
version: "2021-07-01.1b88404.master-1",
|
||||
},
|
||||
want: "Emacs.2021-07-01.1b88404.master-1",
|
||||
},
|
||||
{
|
||||
name: "pretest",
|
||||
args: args{
|
||||
version: "30.0.93-pretest",
|
||||
},
|
||||
want: "Emacs-30.0.93-pretest",
|
||||
},
|
||||
{
|
||||
name: "pretest with variant",
|
||||
args: args{
|
||||
version: "30.0.93-pretest-1",
|
||||
},
|
||||
want: "Emacs-30.0.93-pretest-1",
|
||||
},
|
||||
{
|
||||
name: "stable",
|
||||
args: args{
|
||||
@@ -44,6 +65,20 @@ func TestVersionToName(t *testing.T) {
|
||||
},
|
||||
want: "Emacs-23.3b",
|
||||
},
|
||||
{
|
||||
name: "stable with variant",
|
||||
args: args{
|
||||
version: "23.3-1",
|
||||
},
|
||||
want: "Emacs-23.3-1",
|
||||
},
|
||||
{
|
||||
name: "stable with letter and variant",
|
||||
args: args{
|
||||
version: "23.3b-1",
|
||||
},
|
||||
want: "Emacs-23.3b-1",
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user