File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,24 @@ package
688688 var index : int = 0 ;
689689 for (var platformID: String in application )
690690 {
691+ if (AIRPlatformType. WINDOWS === platformID
692+ && process. platform !== "win32" ) {
693+ // AIR can't compile for Windows from macOS or
694+ // Linux, so we can skip this one
695+ continue ;
696+ }
697+ if (AIRPlatformType. MAC === platformID
698+ && process. platform !== "darwin" ) {
699+ // AIR can't compile for macOS from Windows or
700+ // Linux, so we can skip this one
701+ continue ;
702+ }
703+ if (AIRPlatformType. LINUX === platformID
704+ && process. platform !== "linux" ) {
705+ // AIR can't compile for Linux from Windows or
706+ // macOS, so we can skip this one
707+ continue ;
708+ }
691709 this . _airDescriptors [ index ] = application [ platformID];
692710 index ++;
693711 }
You can’t perform that action at this time.
0 commit comments