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.
|
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)
|
## 0.1.0 (2020-09-05)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ end
|
|||||||
class OSVersion
|
class OSVersion
|
||||||
def initialize
|
def initialize
|
||||||
@version = `sw_vers -productVersion`.match(
|
@version = `sw_vers -productVersion`.match(
|
||||||
/(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/
|
/(?<major>\d+)(?:\.(?<minor>\d+)(:?\.(?<patch>\d+))?)?/
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -54,15 +54,15 @@ class OSVersion
|
|||||||
end
|
end
|
||||||
|
|
||||||
def major
|
def major
|
||||||
@major ||= @version[:major].to_i
|
@major ||= @version[:major]&.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def minor
|
def minor
|
||||||
@minor ||= @version[:minor].to_i
|
@minor ||= @version[:minor]&.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def patch
|
def patch
|
||||||
@patch ||= @version[:patch].to_i
|
@patch ||= @version[:patch]&.to_i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -570,7 +570,7 @@ class AbstractEmbedder
|
|||||||
end
|
end
|
||||||
|
|
||||||
def lib_dir_name
|
def lib_dir_name
|
||||||
"lib-#{OS.arch}-#{OS.version}"
|
"lib-#{OS.arch}-#{OS.version.to_s.tr('.', '_')}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user