Zip Command For Git Zipball?

Posted on
Mon Mar 12, 2018 11:58 am
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Zip Command For Git Zipball?

I've been trying to add a zip file to my repository for Git releases but keep running into issues. If I right click and compress the users report getting the _MACOSX folder, if I use the following command it breaks my symbolic links for Homebridge:
Code: Select all
zip -r -X archive_name.zip folder_to_compress

Is there a happy medium? I really want to zip it because otherwise they get all my 30MB of PNG's for my Wiki pages too :(.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Mon Mar 12, 2018 12:40 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Zip Command For Git Zipball?

I use this python script that I run from an automator action that's stored in services so I can select the plugin then right-click to get to the services menu. But you can just run the script directly. It will delete the *.pyc files before creating the zip file.

I have no idea what _MACOSX is - never seen that before.

None of our plugins use symlinks of any kind though so not sure about that.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Mar 12, 2018 12:53 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Zip Command For Git Zipball?

Thank you Jay! I'll try this on the next release and see how it goes.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Mon Mar 12, 2018 1:12 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Zip Command For Git Zipball?

Colorado4Wheeler wrote:
I've been trying to add a zip file to my repository for Git releases but keep running into issues.


What file system is your local Git repository on? Mine is on my iMac's internal APFS drive and I don't have that issue. I don't think I did on MacOS Extended either.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Mar 12, 2018 1:33 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Zip Command For Git Zipball?

FlyingDiver wrote:
What file system is your local Git repository on?

Extended. I'll try Jays script and see if it breaks things, I'm about to upload a new release anyway.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Mon Mar 12, 2018 1:40 pm
Colorado4Wheeler offline
User avatar
Posts: 2794
Joined: Jul 20, 2009
Location: Colorado

Re: Zip Command For Git Zipball?

Yea, that script doesn't like symlinks.

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests