Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miyako/buildapp
Classes to edit buildApp.4DSettings
https://github.com/miyako/buildapp
4d-component tool4d
Last synced: about 2 months ago
JSON representation
Classes to edit buildApp.4DSettings
- Host: GitHub
- URL: https://github.com/miyako/buildapp
- Owner: miyako
- License: mit
- Created: 2024-02-16T00:31:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T23:02:35.000Z (4 months ago)
- Last Synced: 2024-08-29T23:51:49.808Z (4 months ago)
- Topics: 4d-component, tool4d
- Language: 4D
- Homepage: https://miyako.github.io/buildapp/
- Size: 1.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![version](https://img.shields.io/badge/version-20%2B-E23089)
![platform](https://img.shields.io/static/v1?label=platform&message=mac-intel%20|%20mac-arm%20|%20win-64&color=blue)
[![license](https://img.shields.io/github/license/miyako/4d-class-buildapp)](LICENSE)## dependencies.json
```json
{
"dependencies": {
"buildapp": {
"github": "miyako/buildapp",
"version": "^2.0.10"
}
}
}
```Classes to edit [buildApp.4DSettings](https://doc.4d.com/4Dv20/4D/20/4D-XML-Keys-BuildApplication.100-6335734.en.html).
* Alternative to [Build4D](https://github.com/4d-depot/Build4D)
* Compatible with [BUILD APPLICATION](https://doc.4d.com/4Dv20/4D/20.2/BUILD-APPLICATION.301-6720787.en.html)
* Automatically downloads latest [4d-class-compiler](https://github.com/miyako/4d-class-compiler) from GitHub
* Supports all XML keys up to v20
* Converts XML to JSON and vice versa
* GUI editor
* `tool4d` launcher## Usage
```4d
var $buildSettingsFile : 4D.File
$buildSettingsFile:=File(Build application settings file)var $buildApp : cs.BuildApp.BuildApp
$buildApp:=cs.BuildApp.BuildApp.new($buildSettingsFile)$buildApp:=cs.BuildApp.BuildApp.new($buildSettingsFile)
If (Is macOS)
//to find licenses in keychain
$buildApp.findCertificates("name == :1 and kind == :2"; "@miyako@"; "Developer ID Application")
$BuildApp.SignApplication.MacSignature:=True
$BuildApp.AdHocSign:=False
End ifIf (Is macOS)
$BuildApp.BuildMacDestFolder:=Folder(fk desktop folder).platformPath
Else
$BuildApp.BuildWinDestFolder:=Folder(fk desktop folder).platformPath
End if$BuildApp.BuildApplicationName:=File(Structure file; fk platform path).name
//customise key
$BuildApp.Versioning.Common.CommonVersion:="1.0.0"
$BuildApp.Versioning.Common.CommonCopyright:="©︎K.MIYAKO"
$BuildApp.Versioning.Common.CommonCompanyName:="com.4d.miyako"$buildApp.editor()
```