diff --git a/project.hxp b/project.hxp index aabd0c906..b8c0bddf5 100644 --- a/project.hxp +++ b/project.hxp @@ -1516,14 +1516,14 @@ class Project extends HXProject var exportPath:Null = app.path ?? ""; // mac target uses `macos` for the export folder instead of `mac` - var platform:String = (!isMacHost() ? System.hostPlatform : 'macos'); + var platform:String = (!isMac() ? Std.string(this.target) : 'macos'); var basePath:String = Path.join([exportPath, platform, "bin"]); var assetsPath:String = ""; switch (platformType) { case PlatformType.DESKTOP: - if (isMacHost()) + if (isMac()) { assetsPath = Path.join([basePath, '${this.app.file}.app', "Contents", "Resources", "assets"]); } @@ -1531,7 +1531,15 @@ class Project extends HXProject { assetsPath = Path.join([basePath, "assets"]); } - + case PlatformType.MOBILE: + if (isAndroid() && !isBundle()) + { + assetsPath = Path.join([basePath, "app", "src", "main", "assets", "assets"]); + } + else + { + return; + } default: // Don't do this for other platform types yet. return;