Closed antoniotuzzi closed 6 years ago
I added this to my .profile
function cleanmaczip(){
zip -d "$1" '*/.DS_Store' && zip -d "$1" '__MAC*'
}
Why are you using the ZIP compressor in MacOS? Why not just run make dist
, assuming your Makefile is similar to https://github.com/VCVRack/Tutorial/blob/master/Makefile?
I have to go to each OS and make builds copy them to dropbox and then copy them into the right folder then make the zip
With separated ZIPs for each arch being supported, why not just collect the three ZIPs from each machine's make dist
step?
And with all this manual moving of files and switching computers right clicking to compress is easy
Maybe I don't understand what your workflow is. You have to use all three computers anyway to make the build, so why is your method easier than producing three ZIPs on each computer, collecting them on one computer, and then uploading them to GitHub?
well then there is only one nice zip url in the manifest and only one zip uploaded to github - less chance for error and one sha256 and one check to virus total
Okay, I see, you're using the old combined ZIP method. Using that is still fine if you wish, since I don't plan to remove support for it.
In that case, I propose someone writes a generic zipmerge.sh
script to take the first N-1 arguments, unzip them, and then recombine them into a ZIP with last argument as the filename. Example:
./zipmerge.sh MyModule-0.5.0-*.zip MyModule-0.5.0.zip
I'm aware of the zipmerge utility which does this same thing, but my testing of it seemed to give incorrect permissions of the output files, requiring sudo rm
to remove them, despite unzipping them without root.
ok i will make that script
Ah, wait, I realized how I could make it easily. I can do it if you want.
do it 👍
./zipmerge.sh MyPlugin-0.5.0.zip MyPlugin-0.5.0-*.zip
https://gist.github.com/AndrewBelt/2c8fbe4ca24231a147e348391fa747d6
ooh adding this to the dev faq - thanks!
Closing since everything here is obsolete. It is no longer recommended to merge ZIP packages, and you shouldn't be running your own ZIP commands, just use make dist
and remove the .DS_Store
files prior to running if they're present.
this is not an ISSUE but more an ADVICE:
if you do development on OSX and at the end you compress the package for your plugin using the right mouse button :
compress yourpluginpackage
you can remove the unneeded items doing 2 commands on the the terminal:
1) TO REMOVE the __MACOSX dir do:
2) TO DELETE ALL the .DS_Store files do:
@jeremywen, is not so important but, maybe you want to add to you FAQ