Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Including a MacOS app within the deployment of another MacOS app


This question is not answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Jan 18, 2017 6:23 PM Last Post By: Robert Griffin
Robert Griffin

Posts: 97
Registered: 6/1/03
Including a MacOS app within the deployment of another MacOS app  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 17, 2017 10:49 AM
I wrote a little MacOS app that will restart my app if needed. But when I went to add it to my Deployment, Windows treats it as a folder (which I really know it is) and doesn't allow you to deploy folders, only files.

It is a small app, but before I include it, which each file and each folder for the local path and the remote path, I wanted to find out if there is another way to do it or if that is the only way.

For my Windows app, I just had to deploy the Restart.exe file to my main program app. Not the same thing for Mac.

Thanks.,
Scott Pinkham

Posts: 54
Registered: 3/19/07
Re: Including a MacOS app within the deployment of another MacOS app
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 18, 2017 4:47 PM   in response to: Robert Griffin in response to: Robert Griffin
Robert Griffin wrote:
I wrote a little MacOS app that will restart my app if needed. But when I went to add it to my Deployment, Windows treats it as a folder (which I really know it is) and doesn't allow you to deploy folders, only files.

It is a small app, but before I include it, which each file and each folder for the local path and the remote path, I wanted to find out if there is another way to do it or if that is the only way.

For my Windows app, I just had to deploy the Restart.exe file to my main program app. Not the same thing for Mac.

Thanks.,

Can you put your 2nd app into a archive (zip file), add that file to your deployment, and then have the first app decompress the 2nd app archive? I know that if you put an app in a zip file and copy it to the Mac, then open it on the Mac, macOS will recognize that the archive contains an app and will extract it and let you run it. Probably not what you want, but maybe this is a start?
Robert Griffin

Posts: 97
Registered: 6/1/03
Re: Including a MacOS app within the deployment of another MacOS app  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 18, 2017 6:23 PM   in response to: Scott Pinkham in response to: Scott Pinkham
Can you put your 2nd app into an archive (zip file), add that file to your deployment, and then have the first app decompress the 2nd app archive? I know that if you put an app in a zip file and copy it to the Mac, then open it on the Mac, MacOS will recognize that the archive contains an app and will extract it and let you run it. Probably not what you want, but maybe this is a start?

I think what I might do is get rid of the restart altogether and just have my app launch my app. When the second instance sees's that another instance is running, it will go into a 2-second timer loop to give my first app time to finish closing. 2 seconds should be plant of time but if it still see's the 1st app is running, it will just call halt. Then I won't have to deal with it.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02