Commit Graph

586 Commits

Author SHA1 Message Date
Joshua Granick
f637bdd8ef Fixes for bundle loading 2019-06-21 15:07:08 -07:00
Joshua Granick
7c4110fbef Initial support for libraries using asset bundles 2019-06-21 12:15:58 -07:00
Kostas Chatzikokolakis
d969c7fa30 output.js: add AMD compatibility
If the code is loaded via AMD/requirejs:
- we call define() instead of exporting 'lime' globally
- we disable AMD while the embedded libraries are loading, so that they
  register themselves in the global scope.
2019-06-12 11:51:36 -07:00
Joshua Granick
290b86fb87 Progress on CPPIA support 2019-05-14 12:02:52 -07:00
Joshua Granick
fa91dd6039 Update SDL to HG revision 24883e864f7e 2019-05-08 14:26:45 -07:00
Joshua Granick
f702c8958b Apply SDL patch https://hg.libsdl.org/SDL/rev/3b1f484500f0 2019-05-07 12:17:18 -07:00
Joshua Granick
44133fe2d4 Add -npm option for HTML5 2019-04-15 13:59:18 -07:00
Joshua Granick
20f626dab8 Move native DLL directory to 'lib' 2019-04-11 12:09:26 -07:00
Carlos Madrazo
7b50cb39ff Update name 2019-04-10 10:21:25 -07:00
Carlos Madrazo
e1a0f3a473 Initial Winrt -appx
Outputs Appx file, needs 2 manual steps:
Modify sdkVersion variable in WindowsPlatform.hx to the one you want to use for bin tools in C:\Program Files (x86)\Windows Kits\10\\bin\ and do openfl rebuild tools

For creating the certificate, Powershell command fails but the command lets you know which command you need to execute (copy and past in the cmd prompt)
2019-04-10 10:21:25 -07:00
Joshua Granick
42649d1b9a Improve output HTML5 script wrapper for better Haxe 3.2 support 2019-04-03 11:31:49 -07:00
Joshua Granick
970aaa979c Fix HTML5 output template on debug 2019-03-29 17:06:43 -07:00
Joshua Granick
914e94f9e5 Fix line numbers for HTML5 source maps 2019-03-29 15:58:03 -07:00
Joshua Granick
9689957288 Fix security warning 2019-03-28 12:46:43 -07:00
Joshua Granick
533dcf82a4 Fix HL on Mac 2019-03-14 08:58:17 -07:00
Joshua Granick
8d72e71357 HL update 2019-03-13 11:13:19 -07:00
Joshua Granick
d55762569d Add template for HL Windows 2019-03-12 15:57:09 -07:00
Carlos Madrazo
54a52c9b81 Add define NATIVE_TOOLKIT_SDL_ANGLE, seems to fix winrt release 2019-03-11 08:56:45 -07:00
Carlos Madrazo
3a075cc247 Enable cairo for winrt
DisplayingABitmap works when compiling with

lime rebuild winrt -static -Dcairo -debug -m64

openfl test project.xml winrt -static -Dcairo -debug

And adding a Sys.sleep(1); in openfl/assets/templates/haxe/ApplicationMain.hx, before var result = app.exec ();
2019-03-11 08:56:45 -07:00
Carlos Madrazo
125840589f Initial CPP winrt -static
Runs but no bitmap is displayed when testing with DisplayingABitmap. You can attach VS2017 debugger (Debug Installed App Package).

lime rebuild tools
lime rebuild winrt -static
in DisplayingABitmap:
openfl test project.xml winrt -static
2019-03-04 06:56:40 -08:00
Joshua Granick
dfe3d27f57 Update Haxe formatter, run again 2019-02-14 09:40:22 -08:00
Joshua Granick
5eb13042d9 Template fix 2019-02-14 09:09:39 -08:00
Joshua Granick
0c163a80e7 Use formatter for all Haxe code 2019-02-14 08:41:20 -08:00
Joshua Granick
cac82509da Add support for embedded JS dependencies (embed Lime dependencies by default) 2019-02-12 13:30:07 -08:00
Joshua Granick
3e9f875eaf Process JS using template, add support for unique statics in repeat lime.embed calls 2019-02-12 13:14:40 -08:00
Jens Fischer
ee0c4a88c9 Hide __ASSET__ classes with @:noCompletion 2019-02-05 20:39:12 -08:00
Thomas Byrne
e7ec14795e NPM package.json name property can't have non-URL safe characters, so it's more suited to using the 'packageName' than the 'title'.
This also helps when using tools like electron-packager, which use the package name as a folder name.

Spec:
https://docs.npmjs.com/files/package.json
2019-01-17 00:12:09 -08:00
Joshua Granick
4bd853dfb1 Static build fix (resolve #1278) 2019-01-11 20:41:12 -08:00
Joshua Granick
f32311e2fd Update to SDL 2.0.9 2019-01-11 16:07:35 -08:00
Joshua Granick
e4d7ae8cf4 Template fix 2018-12-12 16:30:59 -08:00
Joshua Granick
eb0b2df706 Console font fixes 2018-12-10 21:20:01 -08:00
70/V9
992f7b70d1 Use electron.main.App.commandLine type
`electron.main.App.commandLine` is now defined in electron externs, no need for untyped workaround anymore.
2018-11-24 12:53:04 -08:00
P.J.Shand
5bbfd42f59 --autoplay-policy, no-user-gesture-required flags to allow video and audio to play without user input 2018-11-12 11:42:12 -08:00
Joshua Granick
734ed288ab Make DIV transparent when no window background is set 2018-11-12 11:03:59 -08:00
Joshua Granick
df0827f4a6 First pass at WinRT app builds 2018-11-01 17:33:42 -07:00
Thomas Byrne
e2cf19e14c Added compiler flag to prevent auto-opening of DevTools (-D suppress_devtools). 2018-11-01 16:50:29 -07:00
Thomas Byrne
49d472c278 Electron HXML was not including 'html', 'html5' & '-debug' flags for main application (only for ElectronSetup.hx) 2018-11-01 16:50:29 -07:00
Joshua Granick
1b8df4203b Hide AIR windows by default when running munit 2018-11-01 16:29:52 -07:00
Joshua Granick
bf109b3f29 Template fix 2018-09-04 09:56:11 -07:00
Joshua Granick
81c633a64b Fix Windows static builds (resolve #1228) 2018-09-03 16:03:27 -07:00
Joshua Granick
691555fb56 Add app.meta.version to default template 2018-08-20 11:05:12 -07:00
Joshua Granick
381f18a791 Electron tweak 2018-08-08 11:36:39 -07:00
Joshua Granick
e68e705e58 Compile fix 2018-08-06 15:52:05 -07:00
Joshua Granick
9bbfd40f8b Force enable WebGL on Electron/Linux 2018-08-06 14:47:07 -07:00
Justin Espedal
4040e35ca8 Wrap entitlements path in quotes for app names with spaces 2018-08-02 19:40:43 -07:00
P.J.Shand
4aeb59f7f1 amend hxml templates
Rename Electron.hx to ElectronSetup.hx to make it more clear what it does
2018-07-31 08:54:44 -07:00
Joshua Granick
4a417c6091 Simplify static templates 2018-07-27 13:46:37 -07:00
Joshua Granick
536450620f Harfbuzz fix 2018-07-24 17:10:07 -07:00
Joshua Granick
6116bac6da Update AIR application template (merge #1203) 2018-07-19 22:20:48 -07:00
Joshua Granick
3495825a85 Electron fix (resolve #1198) 2018-07-19 19:02:00 -07:00