diff --git a/flash/Install.hx b/flash/Install.hx index 549091e..13d1ebd 100644 --- a/flash/Install.hx +++ b/flash/Install.hx @@ -46,9 +46,9 @@ class Install { if (command("tar", ["-xf", Path.withoutDirectory(fpDownload), "-C", "flash"]) != 0) throw "failed to extract flash player"; case "Mac": - if (command("brew", ["tap", "caskroom/cask"]) != 0) - throw "failed to brew tap caskroom/cask"; - if (command("brew", ["cask", "install", "flash-player-debugger", "--appdir=flash"]) != 0) + if (command("brew", ["tap", "caskroom/versions"]) != 0) + throw "failed to brew tap caskroom/versions"; + if (command("brew", ["cask", "install", "flash-player-debugger"]) != 0) throw "failed to install flash-player-debugger"; case "Windows": // Download flash player diff --git a/flash/Run.hx b/flash/Run.hx index 6a619ba..6ce80fc 100644 --- a/flash/Run.hx +++ b/flash/Run.hx @@ -30,13 +30,24 @@ class Run { } c; case "Mac": - command("flash/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger", [fullPath(swf)]); + command("/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger", [fullPath(swf)]); case "Windows": command("flash\\flashplayer.exe", [fullPath(swf)]); case _: throw "unsupported platform"; } - println(getContent(flashlog)); + if (exists(flashlog)) + println(getContent(flashlog)); + else { + println('does not exist: $flashlog'); + var parts = Path.normalize(flashlog).split("/"); + println(parts); + for (i in 0...parts.length-1) { + var path = parts.splice(0, i+1).join("/"); + println('ls $path'); + command("ls", [path]); + } + } exit(exitCode); } } \ No newline at end of file