How do I clone or copy an app?


#1

Is there a way to clone or copy an app from the ‘build’ environment?


#2

The only way right now is to copy each file content manually


#3

If you use ‘Dev’ you just copy the whole folder. The main reason I don’t use ‘Build’ is the questionable version control… undoing mistakes can be a pain.


#4

Okay, then another stupid question, is there a way to bring my ‘build’ project into ‘dev’?


#5

‘Dev’ projects are folder based. Everything for the project goes in the same folder.
I would start be creating a folder and downloading the library “.cpp” and “.h” files that you need directly from Github.
If you look in the libraries list in ‘Build’, there is a Github icon for each library that will take you to the right place.
Then start a new file in Dev, and copy and paste your own code from Build. Name your own files ‘.ino’ or ‘.c’ and they will be included in the compile.

Since everything is in the same folder, remember to remove any paths that Build may have added to your include statements,

Remember to save every time before compiling; there is no auto-save before compile, and if you do not save, it will compile your ‘old’ code from the last save.

To backup, just go to your regular file manager and copy the entire folder to a new folder. I do that whenever I make enough changes that it would make me angry to lose them by mistake.


#6

Is there really still really no way to clone an app?


#7

@codeandcircuit, still not yet :confused:


#8

Is there a way to do a feature request for this?


#9

It’s on the to-do list, and the elites do keep asking for it from time to time.
You can ‘abuse’ the sharing feature of the Web IDE though. Share the project, and use your own link. Then you should basically get a snapshot of your code :o


#10

Unless your project contains legacy libraries - which are also not replacable by v2.0 in the original due to this

Which is a major PITA

You can’t share a legacy project AND you can’t update it either!!!


#11

Just a simple question about the above thread.
Is there a way to open a firmwareX.bin in the IDE?

I am thinking of backup/archive.

Albert


#12

Nope! Binaries can’t easily be disassebled and rebuilt into C/C++ code and and the IDEs won’t do that at all.
You can open them in any text editor or even Desktop IDE but the contents hasn’t got any resemblence with the source code you may be wanting to get back from it.