projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

Support Auto Download of Addons via script - the era of packageManagers

Open danoli3 opened this issue 1 year ago • 3 comments
trafficstars

I forget this is not built into the project Generator already as I been using it for so long.

https://github.com/danoli3/ofxAddonScript

I suggest we add a new format in addons.make to follow this convention and is run via the projectGenerator and code implemented for this script within the projectGenerator in C++

"ofxAddonScript" "https://github.com/danoli3/ofxAddonScript.git" "78fd6f27cf82743644f0c12f926ae053a42a7aa3"

Modifications to addons.make would allow for such definitions

ofxXmlSettings
ofxTexturePacker https://github.com/danoli3/ofxTexturePacker
ofxShapeBatchRenderer https://github.com/stfj/ofxShapeBatchRenderer 71c2144a501ac80682c81aa20d95d0f07c307453
ofxTextAnimation https://github.com/TetsuakiBaba/ofxTextAnimation master

danoli3 avatar Jan 26 '24 15:01 danoli3

Hey @danoli3 is this a valid syntax for makefile? by the way I've been using a personal tool to make reproduceable recipes in projects, including local addons if needed (specific branch or commit)

# name: AV2023

ofpath: ../../..

addons:
- ofxNetwork
- ofxAssimpModelLoader
- ofxMicroUI
- ofxMicroUIMidiController
- ofxTools
- ofxScenes
- ofxSyphon
- ofxMidi

# platforms: ["osx"]
# templates: ["vscode"]

as projectgenerator "rewrites" addons.make and remove not found addons, I've found this is not reliable for reproducing projects.

https://github.com/dimitre/ofbuild

dimitre avatar Jan 26 '24 16:01 dimitre

Oh addons.make is not a real make file its interpreted by config.addons.mk so we can do whatever we want to it if we fix up parameters in the parsing of that file in core

Its used by the make system and the projectGenerator

Yeah in projectGenerator if you deleted an addon it would remove it from the addons.make file, but we can put if theres any extra code in it (params) to comment it out maybe to not lose any manually defined remotes

danoli3 avatar Jan 26 '24 17:01 danoli3

I wasn't aware of yours. Just for the notice, there's also ofPackageManager and ofxAddonTool. Edit: Found this interesting archiver too : ofPkg.

Daandelange avatar Sep 26 '24 08:09 Daandelange