Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
156 stars 30 forks source link

updating packages created with old min sdk #169

Open omarcostahamido opened 3 years ago

omarcostahamido commented 3 years ago

Following this guide: https://github.com/omarcostahamido/min-devkit/blob/master/HowTo-UpdateTheAPI.md What is the recommended way to update a package that was started with an older version of min sdk?

When following that guide, I get: fatal: not a git repository (or any of the parent directories): .git I was using min 0.4.9 and right now it is in 0.5.4

robtherich commented 3 years ago

we would have to know your exact steps for setting up this project in order to offer much help. e.g. did you start by cloning the repository or via some other method?

if you want to update the min repo your project links to via git, then you must first clone the repo with git (rather than use the Package Manager or zip download).

omarcostahamido commented 3 years ago

the old package in question was done with the min-sdk 0.4.9, the package manager version. No git involved at that time.

robtherich commented 3 years ago

in order to update the min libs from a project created via the min-devkit Package Manager launcher patch, something like the following should do the trick:

  1. remove both source/min-api and source/min-lib folders
  2. from the command line, navigate to your project root folder and initialize it as a git project: git init
  3. commit your files: git commit -m"initial commit"
  4. add min-api as submodule: git submodule add https://github.com/Cycling74/min-api.git source/min-api
  5. add min-lib as submodule: git submodule add https://github.com/Cycling74/min-lib.git source/min-lib
  6. commit submodules git commit -m"Min-API and Min-Lib added as git submodules"

you have now converted your project to a git based project with min libs linked as submodules. you should regenerate your project files either via cmake on the command line, or by using the launcher patch interface.