-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop apple-script
#18
Comments
Hello. But did you find way to do that? It appeared to me that it means writing DMG implementation from scratch in node. |
I sort of did, the only thing that apple script is used for is to write the So what is really needed is a function that takes icon positions and window size and returns a I'm trying to find to do it but as we all know time is always short, pull requests welcome. |
I'm a moron, I thought part of applescript is hdiutil :) |
Cool, thanks man! |
Oh god, I have been doing extensive work on the @szwacz did you get any time to look at it? |
I didn't, but have free time just now for couple of days. Could you talk a little about your discoveries so I can start from there? |
I just got my first functional image without apple-script! I'll try to upload everything now... Are you on Mac or Linux? If you want to get Linux working now I don't think that it would be to much work... |
I have created to other projects for support: https://github.com/LinusU/node-alias Haven't pushed anything to the second yet but will soon, just need to patch https://github.com/joeferner/node-bplist-creator |
Currently everything breaks if the image dosen't get mounted to exactly |
I think it has to do with how |
Okay, finally! I have a version that works in the https://github.com/LinusU/node-appdmg/tree/ds-store @szwacz could you please test this on your computer and see if it works? I think that I need to fix LinusU/node-alias#1 before we can merge this into master. |
Sure, may I know how you are testing development version of appdmg? Somehow I just can't get it to work. |
git clone git@github.com:LinusU/node-appdmg.git
git checkout ds-store
npm install
bin/appdmg test/appdmg.json ~/Desktop/test.dmg That should build the test image and dump it to the desktop. |
(Ah, I didn't try the /bin thing) From where did you get the knowledge how to build aliases? |
Mostly wikipedia actually, and reverse engineering what I got from my original |
I'm trying to get familiar with your code, but are confused a little. |
The ds-store branch depends on node-ds-store which in turn depends on node-alias. Since node-alias sometimes gets the Volume Name wrong, node-ds-store sometimes produce faulty .DS_Store files which don't show the background. If we can close LinusU/node-alias#1 we can merge ds-store into master and close this issue. |
How I see volume name/title is limit to 27 symbols. |
@loryk The problem is that mac os aliases contains so much more than just a path, which is good. This is what will make it work if the user decides to mount the dmg somewhere else than we had intended. Basically, the alias contains the name of the volume (e.g. The problem we are facing right now is that |
See comments in #14
The text was updated successfully, but these errors were encountered: