Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

image.sh 646B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. echo Creating temporary image
  3. hdiutil create -size 32m -fs HFS+ -volname "OpenRaider" bin/tmp.dmg
  4. echo Mounting image
  5. hdiutil attach bin/tmp.dmg
  6. echo Moving files
  7. cp -r bin/OpenRaider.app /Volumes/OpenRaider/OpenRaider.app
  8. osascript -e 'tell application "Finder" to make alias file to POSIX file "/Applications" at POSIX file "/Volumes/OpenRaider/"'
  9. cp COPYING /Volumes/OpenRaider/
  10. cp README.md /Volumes/OpenRaider/
  11. cp README.old /Volumes/OpenRaider/
  12. echo Unmounting image
  13. hdiutil detach /Volumes/OpenRaider
  14. echo Converting image
  15. hdiutil convert bin/tmp.dmg -format UDZO -o bin/OpenRaider.dmg
  16. rm -rf bin/tmp.dmg
  17. echo Image ready!