Skip to content

Commit 4a1432b

Browse files
committed
[TravisCI] flash-player-debuger has been moved to caskroom/versions
1 parent aa16393 commit 4a1432b

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

flash/Install.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class Install {
4646
if (command("tar", ["-xf", Path.withoutDirectory(fpDownload), "-C", "flash"]) != 0)
4747
throw "failed to extract flash player";
4848
case "Mac":
49-
if (command("brew", ["tap", "caskroom/cask"]) != 0)
50-
throw "failed to brew tap caskroom/cask";
51-
if (command("brew", ["cask", "install", "flash-player-debugger", "--appdir=flash"]) != 0)
49+
if (command("brew", ["tap", "caskroom/versions"]) != 0)
50+
throw "failed to brew tap caskroom/versions";
51+
if (command("brew", ["cask", "install", "flash-player-debugger"]) != 0)
5252
throw "failed to install flash-player-debugger";
5353
case "Windows":
5454
// Download flash player

flash/Run.hx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,24 @@ class Run {
3030
}
3131
c;
3232
case "Mac":
33-
command("flash/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger", [fullPath(swf)]);
33+
command("/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger", [fullPath(swf)]);
3434
case "Windows":
3535
command("flash\\flashplayer.exe", [fullPath(swf)]);
3636
case _:
3737
throw "unsupported platform";
3838
}
39-
println(getContent(flashlog));
39+
if (exists(flashlog))
40+
println(getContent(flashlog));
41+
else {
42+
println('does not exist: $flashlog');
43+
var parts = Path.normalize(flashlog).split("/");
44+
println(parts);
45+
for (i in 0...parts.length-1) {
46+
var path = parts.splice(0, i+1).join("/");
47+
println('ls $path');
48+
command("ls", [path]);
49+
}
50+
}
4051
exit(exitCode);
4152
}
4253
}

0 commit comments

Comments
 (0)