Comments (6)
osxcross is just a toolchain. What it has to do with creating dmg?
from osxcross.
osxcross is just a toolchain. What it has to do with creating dmg?
Ha ha. But seriously, yeah. Just create an image formatted ISO or UDF, add .dmg
, presto.
from osxcross.
The toolchain does not contain Rez and DeRez, and some other tools.
Also simply creating a .dmg file with genisoimage doesn't give you the look and feel of a native mac app bundle including icons and so on.
The goal is to be able to create a shippable product and not just some lose binaries.
Also I specifically said "for future reference" since I thought some people in this particular community might be interested.
A more constructive contribution than simply doubting the need would have been appreciated.
from osxcross.
The toolchain does not contain Rez and DeRez, and some other tools.
They are not open source.
Also simply creating a .dmg file with genisoimage doesn't give you the look and feel of a native mac app bundle including icons and so on.
This doesn't seem to be osxcross goal.
A more constructive contribution than simply doubting the need would have been appreciated.
If you are looking for references, creating fancy dmg:
https://pypi.python.org/pypi/dmgbuild
Working with dsstore:
https://pypi.python.org/pypi/mac_alias
https://pypi.python.org/pypi/ds_store
from osxcross.
I'm using https://github.com/andreas56/libdmg-hfsplus with buildbot. While you can technically create them with genisoimage
, there are two drawbacks. Can't set extended attributes (setting background image, or creating symlinks), all files will be read only and the permissions carry over when copying off the dmg. So, when the user copies the application to their desktop and tries to delete it later, Finder will popup asking for permission (password).
$ OUTSIZE=$(du -S ./disklayout/) # get the output disk size
$ dd if=/dev/zero of=temp.dmg bs=1124 count=${OUTSIZE}
$ mkfs.hfsplus -v "Project Name" temp.dmg
$ hfsplus temp.dmg addall ./disklayout/
$ hfsplus temp.dmg symlink " " /Applications
$ dmg dmg temp.dmg compressed.dmg
This is essentially what Firefox will be using soon. They are going to be cross compiling OSX on linux very soon.
from osxcross.
- As @noscript's answers implies, what makes "fancy"
.dmg
s fancy is completely independent of how the disk image is formatted. Likewise, tools like Rez and DeRez are very much deprecated; this information is now stored in files like.DS_Store
and.background
, which you can create yourself with on another platform with some ingenuity. But I'd agree this really isn't an issue forosxcross
, any more than the reverse would be an issue for, say,crosstools-ng
. - I wouldn't say "node-appdmg" is close to cross-platform so long as it still calls utilities like
hdiutil
...
from osxcross.
Related Issues (20)
- "mv: cannot stat" error on extracting macOS SDK HOT 1
- Using gcc assembler HOT 2
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osxcross.