hackmac 1.0.0 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/usb +2 -2
- data/hackmac.gemspec +4 -4
- data/lib/hackmac/config.rb +19 -5
- data/lib/hackmac/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9d92b598d1491d29dbfe3fc233afebf212f845297bcb58026f73036b3a26d2f
|
|
4
|
+
data.tar.gz: c29591587e204886e4ffcb9620d47d354b46f6ca8034f4f06d3f17d3bbb9813f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74188b13a351404be04e3b4775a79a8cc58658a50811bd2cc440834aeef694cb83b51c8574f937e48f437cf7ac36ed3ceef1f8c7c21f03e08da791239696303a
|
|
7
|
+
data.tar.gz: ad5e1ead84f3a83cf19a6ecf917c3356622b3595d0f61a5966dea4eec6164d67dc1cbc59e4b115604802b24a33fb756cc1a001cda46633b7f22536fcf8c2bbbc
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.3
|
data/bin/usb
CHANGED
|
@@ -25,6 +25,8 @@ ask("Really erase #{dev.inspect} and install #{$config.usb.os.inspect}? (y/n) ")
|
|
|
25
25
|
|
|
26
26
|
x %{diskutil partitionDisk #{dev.inspect} GPT JHFS+ "USB" 100%}
|
|
27
27
|
|
|
28
|
+
x %{sudo "#{$config.usb.os}/Contents/Resources/createinstallmedia" --volume #{mountpoint.inspect} --nointeraction}
|
|
29
|
+
|
|
28
30
|
x %{sudo mkdir -p #{mountpoint_efi.inspect}}
|
|
29
31
|
x %{sudo mount -t msdos #{(dev + "s1").inspect} #{mountpoint_efi.inspect}}
|
|
30
32
|
cd mountpoint_efi do
|
|
@@ -32,5 +34,3 @@ cd mountpoint_efi do
|
|
|
32
34
|
x %{git remote add origin #{$config.efi.source.inspect}}
|
|
33
35
|
x %{git pull origin master}
|
|
34
36
|
end
|
|
35
|
-
|
|
36
|
-
x %{sudo "#{$config.usb.os}/Contents/Resources/createinstallmedia" --volume #{mountpoint.inspect} --nointeraction}
|
data/hackmac.gemspec
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: hackmac 1.0.
|
|
2
|
+
# stub: hackmac 1.0.3 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "hackmac".freeze
|
|
6
|
-
s.version = "1.0.
|
|
6
|
+
s.version = "1.0.3"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
|
11
|
-
s.date = "2022-05-
|
|
11
|
+
s.date = "2022-05-26"
|
|
12
12
|
s.description = "This ruby gem provides some useful tools for working with a Hackintosh.".freeze
|
|
13
13
|
s.email = "flori@ping.de".freeze
|
|
14
14
|
s.executables = ["efi".freeze, "gfxmon".freeze, "usb".freeze]
|
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
|
16
16
|
s.files = [".gitignore".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/efi".freeze, "bin/gfxmon".freeze, "bin/usb".freeze, "hackmac.gemspec".freeze, "lib/hackmac.rb".freeze, "lib/hackmac/asset_tools.rb".freeze, "lib/hackmac/config.rb".freeze, "lib/hackmac/disks.rb".freeze, "lib/hackmac/github_source.rb".freeze, "lib/hackmac/kext.rb".freeze, "lib/hackmac/kext_upgrader.rb".freeze, "lib/hackmac/oc.rb".freeze, "lib/hackmac/oc_upgrader.rb".freeze, "lib/hackmac/plist.rb".freeze, "lib/hackmac/url_download.rb".freeze, "lib/hackmac/utils.rb".freeze, "lib/hackmac/version.rb".freeze]
|
|
17
17
|
s.homepage = "http://github.com/flori/hackmac".freeze
|
|
18
18
|
s.rdoc_options = ["--title".freeze, "Hackmac - Some useful tools for working with a Hackintosh".freeze, "--main".freeze, "README.md".freeze]
|
|
19
|
-
s.rubygems_version = "3.3.
|
|
19
|
+
s.rubygems_version = "3.3.14".freeze
|
|
20
20
|
s.summary = "Some useful tools for working with a Hackintosh".freeze
|
|
21
21
|
|
|
22
22
|
if s.respond_to? :specification_version then
|
data/lib/hackmac/config.rb
CHANGED
|
@@ -11,19 +11,31 @@ module Hackmac
|
|
|
11
11
|
DEFAULT = <<~end
|
|
12
12
|
---
|
|
13
13
|
efi:
|
|
14
|
-
source: '
|
|
14
|
+
source: 'storage.gate.ping.de:/git/EFI-hacmaxi.git'
|
|
15
15
|
usb:
|
|
16
|
-
os: '/Applications/Install macOS
|
|
16
|
+
os: '/Applications/Install macOS Monterey.app'
|
|
17
17
|
devices:
|
|
18
18
|
main:
|
|
19
|
-
name: '
|
|
19
|
+
name: 'EFI'
|
|
20
20
|
backup:
|
|
21
21
|
name: 'BACKUP_EFI'
|
|
22
22
|
github:
|
|
23
23
|
user: null
|
|
24
24
|
access_token: null
|
|
25
|
+
oc:
|
|
26
|
+
efi_path: 'EFI'
|
|
27
|
+
source:
|
|
28
|
+
github: 'acidanthera/OpenCorePkg'
|
|
29
|
+
debug: true
|
|
30
|
+
install_path: 'X64/EFI'
|
|
31
|
+
files:
|
|
32
|
+
- 'BOOT/BOOTx64.efi'
|
|
33
|
+
- 'OC/OpenCore.efi'
|
|
34
|
+
- 'OC/Drivers/OpenHfsPlus.efi'
|
|
35
|
+
- 'OC/Drivers/OpenRuntime.efi'
|
|
36
|
+
- 'OC/Tools/OpenShell.efi'
|
|
25
37
|
kext:
|
|
26
|
-
efi_path: 'EFI/
|
|
38
|
+
efi_path: 'EFI/OC/Kexts'
|
|
27
39
|
sources:
|
|
28
40
|
AppleALC:
|
|
29
41
|
github: 'acidanthera/AppleALC'
|
|
@@ -45,6 +57,8 @@ module Hackmac
|
|
|
45
57
|
- BrcmFirmwareData
|
|
46
58
|
WhateverGreen:
|
|
47
59
|
github: 'acidanthera/WhateverGreen'
|
|
60
|
+
LucyRTL8125Ethernet:
|
|
61
|
+
github: 'Mieze/LucyRTL8125Ethernet'
|
|
48
62
|
end
|
|
49
63
|
|
|
50
64
|
def self.load(path: ENV.fetch('CONFIG_PATH', '~/.config/hackmac/hackmac.yml'))
|
|
@@ -52,7 +66,7 @@ module Hackmac
|
|
|
52
66
|
mkdir_p path.dirname
|
|
53
67
|
ComplexConfig::Provider.config_dir = path.dirname
|
|
54
68
|
unless path.exist?
|
|
55
|
-
File.secure_write(path, DEFAULT)
|
|
69
|
+
File.secure_write(path.to_s, DEFAULT)
|
|
56
70
|
end
|
|
57
71
|
puts "Loading config from #{path.to_s.inspect}."
|
|
58
72
|
ComplexConfig::Provider[path.basename.to_s.sub(/\..*?\z/, '')]
|
data/lib/hackmac/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hackmac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Frank
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-05-
|
|
11
|
+
date: 2022-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem_hadar
|
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
203
203
|
- !ruby/object:Gem::Version
|
|
204
204
|
version: '0'
|
|
205
205
|
requirements: []
|
|
206
|
-
rubygems_version: 3.3.
|
|
206
|
+
rubygems_version: 3.3.14
|
|
207
207
|
signing_key:
|
|
208
208
|
specification_version: 4
|
|
209
209
|
summary: Some useful tools for working with a Hackintosh
|