hackmac 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 527e2b1122badb306396289a55eadd07b05637e3c5d86ab4b9dc68cfcb097ced
4
- data.tar.gz: 46d344882a7a0ce9ad8dd6503701491934a99655881b281d2a315812f84dd269
3
+ metadata.gz: d13c244074302c8a7655084798808c00a721e789eec6fb10b45d7c651ecdc871
4
+ data.tar.gz: 2f12fd32434020dfe86c060d84d611ff98c4ca3c9ef1998093fed8d03156295e
5
5
  SHA512:
6
- metadata.gz: 9c3d8d74bb8f4b4c373b16dca4ec9a7576977570283338567f1569980380f1692470176d2b82f41c5868123ac7842e4186554116d0e6e3a95e8742608de86f98
7
- data.tar.gz: 6db81624193f35013dba6d1097cd7dbe256868af1769dec425dfa3ebc84dbb96454302a69a9f36b4f16b24fba749201341f444f894a110d0a2f973340f9497e9
6
+ metadata.gz: b51cb0440e59972003f5c9ea05b7815cc84e87b1001cdfbb220ea0ed963ce74d59d99fc47f9371481cbec5778455747e09085be7d9f5c0e2b4530ebcdc661070
7
+ data.tar.gz: 0a326f6be72410039291e6cf679313a7a906211820a95d294efa22e7e02f1ff602f7c6c696dd89278dbd18cc20b2eb0488c502cce7fa44f24c89dfe07854e766
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/bin/efi CHANGED
@@ -81,6 +81,10 @@ def usage
81
81
 
82
82
  The devices have to be different.
83
83
 
84
+ kext list version info of kext
85
+
86
+ argument PATH to the kext
87
+
84
88
  kexts list kexts in L/E and compare versions with clover kexts
85
89
 
86
90
  argument DEVICE (defaults to #{default_dev})
@@ -97,11 +101,16 @@ case command = ARGV.shift
97
101
  when 'help', nil
98
102
  usage
99
103
  when 'mount'
104
+ #if File.exist?('/Volumes/EFI')
105
+ # raise "/Volumes/EFI already exists => Sort this out first."
106
+ #end
100
107
  mdev = ARGV.shift || dev
101
108
  x %{sudo diskutil mount "#{mdev}"}
109
+ # TODO symlink to /Volumes/mdev, mdev should be foo['MountPoint'] from efi boot
102
110
  when /\Aun?mount\z/
103
111
  mdev = ARGV.shift || dev
104
112
  x %{sudo diskutil unmount "#{mdev}"}
113
+ # TODO remove /Volumes/mdev if it is a symlink
105
114
  when 'clone'
106
115
  from = ARGV.shift or fail "need from argument"
107
116
  from == 'boot' and from = dev
@@ -119,7 +128,7 @@ when 'kexts'
119
128
  on_le = Dir['/Library/Extensions/*.kext'].map { |path|
120
129
  Kext.new(path: path)
121
130
  }.sort_by(&:name)
122
- puts 'EFI'.yellow.bold
131
+ puts 'EFI'.yellow.bold + " (#{mdev})".bold
123
132
  on_efi.each do |kext|
124
133
  puts kext.compare_to(on_le)
125
134
  end
@@ -131,7 +140,7 @@ when 'kexts'
131
140
  x %{sudo diskutil umount "#{mdev}"}
132
141
  end
133
142
  when 'kext'
134
- path = ARGV.shift or fail 'need app dir'
143
+ path = ARGV.shift or fail 'need kext dir'
135
144
  puts Kext.new(path: path)
136
145
  when 'boot'
137
146
  disks = Disks.new
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: hackmac 0.0.3 ruby lib
2
+ # stub: hackmac 0.0.4 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "hackmac".freeze
6
- s.version = "0.0.3"
6
+ s.version = "0.0.4"
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 = "2020-01-13"
11
+ s.date = "2020-01-15"
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 = ["gfxmon".freeze, "efi".freeze]
@@ -7,7 +7,7 @@ module Hackmac
7
7
 
8
8
  def initialize(path:)
9
9
  @path = Pathname.new(path) + 'Contents/Info.plist'
10
- @plist = File.open(@path) { |f| ::Plist.parse_xml(f) }
10
+ @plist = File.open(@path, encoding: 'UTF-8') { |f| ::Plist.parse_xml(f) }
11
11
  end
12
12
 
13
13
  def identifier
@@ -1,6 +1,6 @@
1
1
  module Hackmac
2
2
  # Hackmac version
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar