six-updater 0.13.10 → 0.13.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/updater.rb +14 -16
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/updater.rb
CHANGED
@@ -44,7 +44,7 @@ end
|
|
44
44
|
module Six
|
45
45
|
# TODO: Evaluate if this module should be a class instead?
|
46
46
|
module Updater
|
47
|
-
VERSION = '0.13.
|
47
|
+
VERSION = '0.13.11'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -76,21 +76,19 @@ module Six
|
|
76
76
|
TOOL_PATH = File.join(BASE_PATH, 'tools')
|
77
77
|
|
78
78
|
dpath = BASE_PATH
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
if ENV['APPDATA']
|
91
|
-
|
92
|
-
dpath = File.join(ENV['APPDATA'], 'Six-Updater') if File.directory?(ENV['APPDATA'])
|
93
|
-
end
|
79
|
+
unless File.exists?(File.join(BASE_PATH, "legacy.txt"))
|
80
|
+
#reg_path = nil
|
81
|
+
#begin
|
82
|
+
# reg_path = Win32::Registry::HKEY_CURRENT_USER.open("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders")['AppData']
|
83
|
+
#rescue
|
84
|
+
#end
|
85
|
+
#if reg_path
|
86
|
+
# if reg_path.size > 0
|
87
|
+
# dpath = File.join(reg_path, 'Six-Updater') if File.directory?(reg_path)
|
88
|
+
# end
|
89
|
+
if ENV['APPDATA']
|
90
|
+
if ENV['APPDATA'].size > 0
|
91
|
+
dpath = File.join(ENV['APPDATA'], 'Six-Updater') if File.directory?(ENV['APPDATA'])
|
94
92
|
end
|
95
93
|
end
|
96
94
|
end
|