macOS: create a standalone bundle, introduce tools/create_dmg
Needs ReviewPublic

Authored by whitegeorge on Dec 10 2016, 10:24 AM.

Details

Reviewers
None
Group Reviewers
Marble
Summary

Google Code-in task.

Test Plan
  1. Build Marble against Qt from qt.io.
  2. Pass the app to tools/create_dmg/create.py as -i or --app, and pass the new DMG path as -o or --out.

Diff Detail

Repository
R34 Marble
Lint
Lint Skipped
Unit
Unit Tests Skipped
whitegeorge retitled this revision from to macOS: create a standalone bundle, introduce tools/create_dmg.
whitegeorge updated this object.
whitegeorge edited the test plan for this revision. (Show Details)
whitegeorge added a reviewer: Marble.
whitegeorge set the repository for this revision to R34 Marble.
whitegeorge added a project: Marble.
whitegeorge added inline comments.Dec 10 2016, 10:26 AM
tools/create_dmg/create.py
9

I need to get this from CMake.

The resultant DMG looks like this on mount:

nienhueser added inline comments.
tools/create_dmg/create.py
2

Please add the typical license header, see e.g. https://cgit.kde.org/marble.git/tree/tools/vectortilecreator/vectortilecreator.py and your name and mail address as author.

39

shutil.copytree seems better, see https://docs.python.org/3.5/library/shutil.html

52

Please use shutil.copyfile

68

Please use shutil.rmtree

74

Please add a help entry also, same below.

Reflected @nienhueser's comments on the original patch.

Minor style changes.

whitegeorge planned changes to this revision.Dec 10 2016, 11:12 AM
whitegeorge marked 5 inline comments as done.

Removed time from the import.

nienhueser added inline comments.Dec 10 2016, 11:17 AM
tools/create_dmg/create.py
2

Should by python, not Python

Use shutil.copytree

Corrected uppercase P in crunchbang.

whitegeorge marked an inline comment as done.Dec 10 2016, 11:22 AM

Mark comment as finished.

consistent use of os.path.join

Corrected an accidental delete of DMG_APP variable assignment line.

whitegeorge marked an inline comment as done.Dec 11 2016, 11:21 AM

How are we doing here? Can we land this?