sprout 0.7.212-x86-linux → 0.7.213-x86-linux
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/lib/sprout.rb +3 -3
- data/lib/sprout/version.rb +1 -1
- metadata +1 -1
data/lib/sprout.rb
CHANGED
@@ -255,7 +255,9 @@ EOF
|
|
255
255
|
exe = File.join(target.installed_path, archive_path)
|
256
256
|
if(User.new.is_a?(WinUser) && !archive_path.match(/.exe$/))
|
257
257
|
# If we're on Win (even Cygwin), add .exe to support custom binaries (see sprout-flex3sdk-tool)
|
258
|
-
exe
|
258
|
+
if(File.exists?(exe + '.exe'))
|
259
|
+
exe << '.exe'
|
260
|
+
end
|
259
261
|
end
|
260
262
|
elsif(target.url)
|
261
263
|
# Otherwise, use the default path to an executable if the RemoteFileTarget has a url prop
|
@@ -265,8 +267,6 @@ EOF
|
|
265
267
|
exe = target.archive_path
|
266
268
|
end
|
267
269
|
|
268
|
-
|
269
|
-
|
270
270
|
if(!File.exists?(exe))
|
271
271
|
raise UsageError.new("Could not retrieve requested executable from path: #{exe}")
|
272
272
|
end
|
data/lib/sprout/version.rb
CHANGED