浏览代码

Added Icon and py2app setup script

Thomas Buck 8 年前
父节点
当前提交
40b2937bad
共有 2 个文件被更改,包括 35 次插入0 次删除
  1. 二进制
      icon.icns
  2. 35
    0
      setup_mac.py

二进制
icon.icns 查看文件


+ 35
- 0
setup_mac.py 查看文件

@@ -0,0 +1,35 @@
1
+#!/usr/bin/env python
2
+# -*- coding: utf-8 -*-
3
+
4
+"""
5
+This is a setup.py script generated by py2applet
6
+
7
+Usage:
8
+    python setup.py py2app
9
+"""
10
+
11
+from setuptools import setup
12
+
13
+APP = ['bed-leveling.py']
14
+APP_NAME = "Bed Leveling"
15
+DATA_FILES = []
16
+OPTIONS = {
17
+    'argv_emulation': True,
18
+    'iconfile': 'icon.icns',
19
+    'plist': {
20
+        'CFBundleName': APP_NAME,
21
+        'CFBundleDisplayName': APP_NAME,
22
+        'CFBundleGetInfoString': "Marlin Firmware Mesh Bed Leveling Utility",
23
+        'CFBundleIdentifier': "de.xythobuz.bed-leveling",
24
+        'CFBundleVersion': "0.1.0",
25
+        'CFBundleShortVersionString': "0.1.0",
26
+        'NSHumanReadableCopyright': u"Copyright © 2016, Thomas Buck, All Rights Reserved"
27
+    }
28
+}
29
+
30
+setup(
31
+    app=APP,
32
+    data_files=DATA_FILES,
33
+    options={'py2app': OPTIONS},
34
+    setup_requires=['py2app'],
35
+)

正在加载...
取消
保存