mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
5341728b41
|
|||
|
f8515ad3a4
|
|||
|
c89d0a0b73
|
@@ -2,6 +2,13 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
### [0.1.1](https://github.com/jimeh/build-emacs-for-macos/compare/0.1.0...0.1.1) (2020-09-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **internal:** improve macOS version detection ([c89d0a0](https://github.com/jimeh/build-emacs-for-macos/commit/c89d0a0b73dfc82d918c326d89b141f8a2fc4de4)), closes [#13](https://github.com/jimeh/build-emacs-for-macos/issues/13)
|
||||
|
||||
## 0.1.0 (2020-09-05)
|
||||
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ end
|
||||
class OSVersion
|
||||
def initialize
|
||||
@version = `sw_vers -productVersion`.match(
|
||||
/(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/
|
||||
/(?<major>\d+)(?:\.(?<minor>\d+)(:?\.(?<patch>\d+))?)?/
|
||||
)
|
||||
end
|
||||
|
||||
@@ -54,15 +54,15 @@ class OSVersion
|
||||
end
|
||||
|
||||
def major
|
||||
@major ||= @version[:major].to_i
|
||||
@major ||= @version[:major]&.to_i
|
||||
end
|
||||
|
||||
def minor
|
||||
@minor ||= @version[:minor].to_i
|
||||
@minor ||= @version[:minor]&.to_i
|
||||
end
|
||||
|
||||
def patch
|
||||
@patch ||= @version[:patch].to_i
|
||||
@patch ||= @version[:patch]&.to_i
|
||||
end
|
||||
end
|
||||
|
||||
@@ -570,7 +570,7 @@ class AbstractEmbedder
|
||||
end
|
||||
|
||||
def lib_dir_name
|
||||
"lib-#{OS.arch}-#{OS.version}"
|
||||
"lib-#{OS.arch}-#{OS.version.to_s.tr('.', '_')}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user