six-updater-web 0.19.3 → 0.19.4
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.
- data/Rakefile +1 -1
- data/lib/six-updater-web/app/models/arma2_oa_appsetting.rb +5 -1
- data/lib/six-updater-web/config/six-updater-web.rb +3 -1
- data/lib/six-updater-web/public/images/active_scaffold/DO_NOT_EDIT +2 -2
- data/lib/six-updater-web/public/javascripts/active_scaffold/DO_NOT_EDIT +2 -2
- data/lib/six-updater-web/public/stylesheets/active_scaffold/DO_NOT_EDIT +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
|
@@ -7,7 +7,11 @@ class Arma2OaAppsetting < Arma2Appsetting
|
|
|
7
7
|
def found_type
|
|
8
8
|
return self.class unless self.real_path
|
|
9
9
|
# TODO: Alternative ways to figure out the edition? Find arma2.exe? etc
|
|
10
|
-
|
|
10
|
+
dir = File.join(self.real_path, "addons")
|
|
11
|
+
rdir = File.directory?(dir) ? dir : File.join(self.real_path, "Addons")
|
|
12
|
+
rdir = File.join(self.real_path, "AddOns") unless File.directory?(rdir)
|
|
13
|
+
|
|
14
|
+
if File.exists?(File.join(rdir, "chernarus.pbo")) || File.exists?(File.join(rdir, "Chernarus.pbo"))
|
|
11
15
|
Arma2OaCoAppsetting
|
|
12
16
|
else
|
|
13
17
|
Arma2OaStAppsetting
|
|
@@ -22,7 +22,7 @@ case RUBY_VERSION
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
module SixUpdaterWeb
|
|
25
|
-
VERSION = "0.19.
|
|
25
|
+
VERSION = "0.19.4"
|
|
26
26
|
COMPONENT = "six-updater-web"
|
|
27
27
|
|
|
28
28
|
DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
|
|
@@ -127,6 +127,8 @@ module SixUpdaterWeb
|
|
|
127
127
|
DATA_PATH = File.join(File.exists?(File.join(BASE_PATH, "legacy.txt")) ? BASE_PATH : HOME_PATH, "six-updater") # COMPONENT)
|
|
128
128
|
ARMA_PATH, DISTRO = rpath, distro
|
|
129
129
|
|
|
130
|
+
FileUtils.mkdir_p DATA_PATH unless File.directory?(DATA_PATH)
|
|
131
|
+
|
|
130
132
|
PID_FILE = File.join(DATA_PATH, "#{COMPONENT}.pid")
|
|
131
133
|
File.open(PID_FILE, 'w') {|f| f.puts Process.pid}
|
|
132
134
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Any changes made to files in sub-folders will be lost.
|
|
2
|
-
See http://activescaffold.com/tutorials/faq#custom-css.
|
|
1
|
+
Any changes made to files in sub-folders will be lost.
|
|
2
|
+
See http://activescaffold.com/tutorials/faq#custom-css.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Any changes made to files in sub-folders will be lost.
|
|
2
|
-
See http://activescaffold.com/tutorials/faq#custom-css.
|
|
1
|
+
Any changes made to files in sub-folders will be lost.
|
|
2
|
+
See http://activescaffold.com/tutorials/faq#custom-css.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Any changes made to files in sub-folders will be lost.
|
|
2
|
-
See http://activescaffold.com/tutorials/faq#custom-css.
|
|
1
|
+
Any changes made to files in sub-folders will be lost.
|
|
2
|
+
See http://activescaffold.com/tutorials/faq#custom-css.
|