six-updater 0.13.8 → 0.13.9
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 +5 -4
- 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.9'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -75,7 +75,7 @@ module Six
|
|
75
75
|
end
|
76
76
|
TOOL_PATH = File.join(BASE_PATH, 'tools')
|
77
77
|
|
78
|
-
|
78
|
+
dpath = BASE_PATH
|
79
79
|
if defined?(TAR2RUBYSCRIPT)
|
80
80
|
unless File.exists?(File.join(BASE_PATH, "legacy.txt"))
|
81
81
|
reg_path = nil
|
@@ -85,15 +85,16 @@ module Six
|
|
85
85
|
end
|
86
86
|
if reg_path
|
87
87
|
if reg_path.size > 0
|
88
|
-
|
88
|
+
dpath = File.join(reg_path, 'Six-Updater') if File.directory?(reg_path)
|
89
89
|
end
|
90
90
|
elsif ENV['APPDATA']
|
91
91
|
if ENV['APPDATA'].size > 0
|
92
|
-
|
92
|
+
dpath = File.join(ENV['APPDATA'], 'Six-Updater') if File.directory?(ENV['APPDATA'])
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
97
|
+
DATA_PATH = dpath
|
97
98
|
|
98
99
|
lf = File.join(DATA_PATH, "logs")
|
99
100
|
FileUtils.mkdir_p(lf) unless File.directory?(lf)
|