Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshtynjala/openfl-custom-air-application-descriptor-xml-sample
A sample OpenFL project that customizes the air/template/application.xml template file
https://github.com/joshtynjala/openfl-custom-air-application-descriptor-xml-sample
adobe-air haxe openfl openfl-samples
Last synced: 16 days ago
JSON representation
A sample OpenFL project that customizes the air/template/application.xml template file
- Host: GitHub
- URL: https://github.com/joshtynjala/openfl-custom-air-application-descriptor-xml-sample
- Owner: joshtynjala
- Created: 2023-04-04T21:58:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T22:19:30.000Z (12 months ago)
- Last Synced: 2024-10-16T20:23:42.905Z (29 days ago)
- Topics: adobe-air, haxe, openfl, openfl-samples
- Language: Haxe
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# OpenFL custom _application.xml_ template for Adobe AIR
The [OpenFL](https://openfl.org) library for Haxe contains a number of template files that are used when building a project. You can find them in the [_assets/templates_](https://github.com/openfl/openfl/tree/develop/assets/templates) directory. Using the `` element in _project.xml_, it's possible to replace one or more of these template files with custom versions, on a per-project basis, and without forking OpenFL.
This sample project contains a directory named [_custom-templates_](https://github.com/joshtynjala/openfl-custom-index-html-sample/tree/main/custom-templates). It is configured in [_project.xml_](https://github.com/joshtynjala/openfl-custom-index-html-sample/tree/main/project.xml) like this:
```xml
```
Inside [_custom-templates_](https://github.com/joshtynjala/openfl-custom-index-html-sample/tree/main/custom-templates), there's a file at [_air/template/application.xml_](https://github.com/joshtynjala/openfl-custom-air-application-descriptor-xml-sample/tree/main/custom-templates/air/template/application.xml). The relative path to this file matches the file named [_air/template/application.xml_](https://github.com/openfl/lime/tree/develop/templates/air/template/application.xml) inside Lime's [_templates_](https://github.com/openfl/openfl/tree/develop/templates) directory.
To confirm that the custom [_air/template/application.xml_](https://github.com/joshtynjala/openfl-custom-air-application-descriptor-xml-sample/tree/main/custom-templates/air/template/application.xml) is being used by the project, simply compile, and you should see your changes in _bin/air_.
```sh
openfl build air
```Sample created by [Josh Tynjala](https://github.com/sponsors/joshtynjala), the author of [Feathers UI](https://feathersui.com/) and core contributor to [OpenFL](https://openfl.org/).