haxenme / nme

A cross-platform native backend for Haxe projects
MIT License
480 stars 124 forks source link

nme build neko create an empty output file. #709

Open arloan opened 2 years ago

arloan commented 2 years ago

nme build neko succeeded, but a empty ApplicationMain.n file created for a newly created haxeui-nme project.

$ haxelib run haxeui-core create nme
....
$ nme build project.nmml neko
$ ll build/nme/mac-neko64/haxe
total 56
-rw-r--r--  1 stone  staff   1.3K Mar 28 16:16 ApplicationBoot.hx
-rw-r--r--  1 stone  staff   730B Mar 28 16:16 ApplicationDocument.hx
-rw-r--r--  1 stone  staff   7.0K Mar 28 16:16 ApplicationMain.hx
-rw-r--r--  1 stone  staff     0B Mar 28 16:16 ApplicationMain.n
-rw-r--r--  1 stone  staff    36B Mar 28 16:16 AssetType.hx
-rw-r--r--  1 stone  staff    45B Mar 28 16:16 NMEPreloader.hx
-rw-r--r--  1 stone  staff   879B Mar 28 16:16 build.hxml
drwxr-xr-x  4 stone  staff   128B Mar 28 16:16 nme

The generated .n file is of 0 byte: -rw-r--r-- 1 stone staff 0B Mar 28 16:16 ApplicationMain.n

PS: released haxelib haxeui-nme (1.4.0) doesn't compile any project, I used up-to-date git version of haxeui-nme to compile.

$ haxelib list
actuate: [1.8.9]
box2d: [1.2.3]
format: [3.5.0]
hashlink: [0.1.0]
haxeui-core: [1.4.0]
haxeui-heaps: [1.4.0]
haxeui-hxwidgets: [1.4.0]
haxeui-kha: [1.4.0]
haxeui-nme: [git]
haxeui-openfl: [1.4.0]
heaps: [1.9.1]
hlopenal: [1.5.0]
hlsdl: [1.10.0]
hxcpp: [4.2.1]
hxWidgets: [1.9.0]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: [7.9.0]
nme: 6.1.1 [6.1.38]
openfl-samples: [8.7.0]
openfl: [9.1.0]
$ neofetch
                    'c.          stone@Stones-MacBook-Pro.local 
                 ,xNMM.          ------------------------------ 
               .OMMMMo           OS: macOS 12.2.1 21D62 x86_64 
               OMMM0,            Host: Hackintosh (SMBIOS: MacBookPro15,4) 
     .;loddo:' loolloddol;.      Kernel: 21.3.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 3 days, 7 hours, 12 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 40 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 2560x1440 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Light) 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: Apple_Terminal 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: SFMono-Regular 
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Intel i7-10710U (12) @ 1.10GHz 
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Intel Iris Plus Graphics 655 
       .cooc,.    .,coo:.        Memory: 10732MiB / 16384MiB