unifypy 2.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- unifypy/__init__.py +7 -0
- unifypy/__main__.py +21 -0
- unifypy/cli/__init__.py +10 -0
- unifypy/cli/argument_parser.py +209 -0
- unifypy/core/__init__.py +8 -0
- unifypy/core/config.py +491 -0
- unifypy/core/context.py +36 -0
- unifypy/core/engine.py +93 -0
- unifypy/core/environment.py +509 -0
- unifypy/core/event_bus.py +37 -0
- unifypy/core/events.py +16 -0
- unifypy/core/platforms.py +58 -0
- unifypy/core/plugin.py +65 -0
- unifypy/core/validators/__init__.py +10 -0
- unifypy/core/validators/tool_validator.py +144 -0
- unifypy/platforms/__init__.py +10 -0
- unifypy/platforms/base.py +127 -0
- unifypy/platforms/linux/__init__.py +10 -0
- unifypy/platforms/linux/deb_packager.py +289 -0
- unifypy/platforms/linux/rpm_packager.py +332 -0
- unifypy/platforms/macos/__init__.py +10 -0
- unifypy/platforms/macos/dmg_packager.py +477 -0
- unifypy/platforms/macos/post_processor.py +272 -0
- unifypy/platforms/registry.py +108 -0
- unifypy/platforms/windows/__init__.py +9 -0
- unifypy/platforms/windows/inno_setup.py +715 -0
- unifypy/plugins/__init__.py +3 -0
- unifypy/plugins/auto_rollback_plugin.py +156 -0
- unifypy/plugins/cleanup_plugin.py +22 -0
- unifypy/plugins/config_plugin.py +42 -0
- unifypy/plugins/dry_run_plugin.py +22 -0
- unifypy/plugins/environment_plugin.py +61 -0
- unifypy/plugins/external_plugins_loader.py +42 -0
- unifypy/plugins/packaging_plugin.py +125 -0
- unifypy/plugins/prepare_plugin.py +89 -0
- unifypy/plugins/progress_plugin.py +32 -0
- unifypy/plugins/pyinstaller_plugin.py +95 -0
- unifypy/plugins/rollback_plugin.py +62 -0
- unifypy/plugins/summary_plugin.py +36 -0
- unifypy/plugins/windows_language_plugin.py +85 -0
- unifypy/pyinstaller/__init__.py +7 -0
- unifypy/pyinstaller/config_builder.py +908 -0
- unifypy/templates/ChineseSimplified.isl.template +403 -0
- unifypy/templates/setup.iss.template +51 -0
- unifypy/tools/create-dmg/.this-is-the-create-dmg-repo +3 -0
- unifypy/tools/create-dmg/LICENSE +22 -0
- unifypy/tools/create-dmg/Makefile +33 -0
- unifypy/tools/create-dmg/README.md +126 -0
- unifypy/tools/create-dmg/builder/create-dmg.builder +26 -0
- unifypy/tools/create-dmg/create-dmg +621 -0
- unifypy/tools/create-dmg/doc-project/Developer Notes.md +35 -0
- unifypy/tools/create-dmg/doc-project/Release Checklist.md +10 -0
- unifypy/tools/create-dmg/examples/01-main-example/installer_background.png +0 -0
- unifypy/tools/create-dmg/examples/01-main-example/sample +30 -0
- unifypy/tools/create-dmg/examples/01-main-example/source_folder/Application.app +0 -0
- unifypy/tools/create-dmg/support/eula-resources-template.xml +105 -0
- unifypy/tools/create-dmg/support/template.applescript +74 -0
- unifypy/tools/create-dmg/tests/007-space-in-dir-name/my files/hello.txt +1 -0
- unifypy/tools/create-dmg/tests/007-space-in-dir-name/run-test +5 -0
- unifypy/utils/__init__.py +10 -0
- unifypy/utils/cache_manager.py +957 -0
- unifypy/utils/command_runner.py +195 -0
- unifypy/utils/entitlements_generator.py +450 -0
- unifypy/utils/file_ops.py +333 -0
- unifypy/utils/icon_converter.py +144 -0
- unifypy/utils/info_plist_updater.py +247 -0
- unifypy/utils/macos_codesign.py +225 -0
- unifypy/utils/parallel_builder.py +355 -0
- unifypy/utils/progress.py +371 -0
- unifypy/utils/progress_callback_factory.py +56 -0
- unifypy/utils/rollback.py +484 -0
- unifypy/utils/tool_manager.py +701 -0
- unifypy-2.0.2.dist-info/METADATA +609 -0
- unifypy-2.0.2.dist-info/RECORD +78 -0
- unifypy-2.0.2.dist-info/WHEEL +5 -0
- unifypy-2.0.2.dist-info/entry_points.txt +2 -0
- unifypy-2.0.2.dist-info/licenses/LICENSE +21 -0
- unifypy-2.0.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
; *** Inno Setup version 6.4.0+ Chinese Simplified messages ***
|
|
2
|
+
;
|
|
3
|
+
; To download user-contributed translations of this file, go to:
|
|
4
|
+
; https://jrsoftware.org/files/istrans/
|
|
5
|
+
;
|
|
6
|
+
; Note: When translating this text, do not add periods (.) to the end of
|
|
7
|
+
; messages that didn't have them already, because on those messages Inno
|
|
8
|
+
; Setup adds the periods automatically (appending a period would result in
|
|
9
|
+
; two periods being displayed).
|
|
10
|
+
;
|
|
11
|
+
; Maintained by Zhenghan Yang
|
|
12
|
+
; Email: 847320916@QQ.com
|
|
13
|
+
; Translation based on network resource
|
|
14
|
+
; The latest Translation is on https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation
|
|
15
|
+
;
|
|
16
|
+
|
|
17
|
+
[LangOptions]
|
|
18
|
+
; The following three entries are very important. Be sure to read and
|
|
19
|
+
; understand the '[LangOptions] section' topic in the help file.
|
|
20
|
+
LanguageName=简体中文
|
|
21
|
+
; If Language Name display incorrect, uncomment next line
|
|
22
|
+
; LanguageName=<7B80><4F53><4E2D><6587>
|
|
23
|
+
; About LanguageID, to reference link:
|
|
24
|
+
; https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c
|
|
25
|
+
LanguageID=$0804
|
|
26
|
+
; About CodePage, to reference link:
|
|
27
|
+
; https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers
|
|
28
|
+
LanguageCodePage=936
|
|
29
|
+
; If the language you are translating to requires special font faces or
|
|
30
|
+
; sizes, uncomment any of the following entries and change them accordingly.
|
|
31
|
+
;DialogFontName=
|
|
32
|
+
;DialogFontSize=8
|
|
33
|
+
;WelcomeFontName=Verdana
|
|
34
|
+
;WelcomeFontSize=12
|
|
35
|
+
;TitleFontName=Arial
|
|
36
|
+
;TitleFontSize=29
|
|
37
|
+
;CopyrightFontName=Arial
|
|
38
|
+
;CopyrightFontSize=8
|
|
39
|
+
|
|
40
|
+
[Messages]
|
|
41
|
+
|
|
42
|
+
; *** 应用程序标题
|
|
43
|
+
SetupAppTitle=安装
|
|
44
|
+
SetupWindowTitle=安装 - %1
|
|
45
|
+
UninstallAppTitle=卸载
|
|
46
|
+
UninstallAppFullTitle=%1 卸载
|
|
47
|
+
|
|
48
|
+
; *** Misc. common
|
|
49
|
+
InformationTitle=信息
|
|
50
|
+
ConfirmTitle=确认
|
|
51
|
+
ErrorTitle=错误
|
|
52
|
+
|
|
53
|
+
; *** SetupLdr messages
|
|
54
|
+
SetupLdrStartupMessage=现在将安装 %1。您想要继续吗?
|
|
55
|
+
LdrCannotCreateTemp=无法创建临时文件。安装程序已中止
|
|
56
|
+
LdrCannotExecTemp=无法执行临时目录中的文件。安装程序已中止
|
|
57
|
+
HelpTextNote=
|
|
58
|
+
|
|
59
|
+
; *** 启动错误消息
|
|
60
|
+
LastErrorMessage=%1。%n%n错误 %2: %3
|
|
61
|
+
SetupFileMissing=安装目录中缺少文件 %1。请修正这个问题或者获取程序的新副本。
|
|
62
|
+
SetupFileCorrupt=安装文件已损坏。请获取程序的新副本。
|
|
63
|
+
SetupFileCorruptOrWrongVer=安装文件已损坏,或是与这个安装程序的版本不兼容。请修正这个问题或获取新的程序副本。
|
|
64
|
+
InvalidParameter=无效的命令行参数:%n%n%1
|
|
65
|
+
SetupAlreadyRunning=安装程序正在运行。
|
|
66
|
+
WindowsVersionNotSupported=此程序不支持当前计算机运行的 Windows 版本。
|
|
67
|
+
WindowsServicePackRequired=此程序需要 %1 服务包 %2 或更高版本。
|
|
68
|
+
NotOnThisPlatform=此程序不能在 %1 上运行。
|
|
69
|
+
OnlyOnThisPlatform=此程序只能在 %1 上运行。
|
|
70
|
+
OnlyOnTheseArchitectures=此程序只能安装到为下列处理器架构设计的 Windows 版本中:%n%n%1
|
|
71
|
+
WinVersionTooLowError=此程序需要 %1 版本 %2 或更高。
|
|
72
|
+
WinVersionTooHighError=此程序不能安装于 %1 版本 %2 或更高。
|
|
73
|
+
AdminPrivilegesRequired=在安装此程序时您必须以管理员身份登录。
|
|
74
|
+
PowerUserPrivilegesRequired=在安装此程序时您必须以管理员身份或有权限的用户组身份登录。
|
|
75
|
+
SetupAppRunningError=安装程序发现 %1 当前正在运行。%n%n请先关闭正在运行的程序,然后点击“确定”继续,或点击“取消”退出。
|
|
76
|
+
UninstallAppRunningError=卸载程序发现 %1 当前正在运行。%n%n请先关闭正在运行的程序,然后点击“确定”继续,或点击“取消”退出。
|
|
77
|
+
|
|
78
|
+
; *** 启动问题
|
|
79
|
+
PrivilegesRequiredOverrideTitle=选择安装程序模式
|
|
80
|
+
PrivilegesRequiredOverrideInstruction=选择安装模式
|
|
81
|
+
PrivilegesRequiredOverrideText1=%1 可以为所有用户安装(需要管理员权限),或仅为您安装。
|
|
82
|
+
PrivilegesRequiredOverrideText2=%1 只能为您安装,或为所有用户安装(需要管理员权限)。
|
|
83
|
+
PrivilegesRequiredOverrideAllUsers=为所有用户安装(&A)
|
|
84
|
+
PrivilegesRequiredOverrideAllUsersRecommended=为所有用户安装(&A) (建议选项)
|
|
85
|
+
PrivilegesRequiredOverrideCurrentUser=只为我安装(&M)
|
|
86
|
+
PrivilegesRequiredOverrideCurrentUserRecommended=只为我安装(&M) (建议选项)
|
|
87
|
+
|
|
88
|
+
; *** 其他错误
|
|
89
|
+
ErrorCreatingDir=安装程序无法创建目录“%1”
|
|
90
|
+
ErrorTooManyFilesInDir=无法在目录“%1”中创建文件,因为里面包含太多文件
|
|
91
|
+
|
|
92
|
+
; *** 安装程序公共消息
|
|
93
|
+
ExitSetupTitle=退出安装程序
|
|
94
|
+
ExitSetupMessage=安装程序尚未完成。如果现在退出,将不会安装该程序。%n%n您之后可以再次运行安装程序完成安装。%n%n现在退出安装程序吗?
|
|
95
|
+
AboutSetupMenuItem=关于安装程序(&A)...
|
|
96
|
+
AboutSetupTitle=关于安装程序
|
|
97
|
+
AboutSetupMessage=%1 版本 %2%n%3%n%n%1 主页:%n%4
|
|
98
|
+
AboutSetupNote=
|
|
99
|
+
TranslatorNote=简体中文翻译由Kira(847320916@qq.com)维护。项目地址:https://github.com/kira-96/Inno-Setup-Chinese-Simplified-Translation
|
|
100
|
+
|
|
101
|
+
; *** 按钮
|
|
102
|
+
ButtonBack=< 上一步(&B)
|
|
103
|
+
ButtonNext=下一步(&N) >
|
|
104
|
+
ButtonInstall=安装(&I)
|
|
105
|
+
ButtonOK=确定
|
|
106
|
+
ButtonCancel=取消
|
|
107
|
+
ButtonYes=是(&Y)
|
|
108
|
+
ButtonYesToAll=全是(&A)
|
|
109
|
+
ButtonNo=否(&N)
|
|
110
|
+
ButtonNoToAll=全否(&O)
|
|
111
|
+
ButtonFinish=完成(&F)
|
|
112
|
+
ButtonBrowse=浏览(&B)...
|
|
113
|
+
ButtonWizardBrowse=浏览(&R)...
|
|
114
|
+
ButtonNewFolder=新建文件夹(&M)
|
|
115
|
+
|
|
116
|
+
; *** “选择语言”对话框消息
|
|
117
|
+
SelectLanguageTitle=选择安装语言
|
|
118
|
+
SelectLanguageLabel=选择安装时使用的语言。
|
|
119
|
+
|
|
120
|
+
; *** 公共向导文字
|
|
121
|
+
ClickNext=点击“下一步”继续,或点击“取消”退出安装程序。
|
|
122
|
+
BeveledLabel=
|
|
123
|
+
BrowseDialogTitle=浏览文件夹
|
|
124
|
+
BrowseDialogLabel=在下面的列表中选择一个文件夹,然后点击“确定”。
|
|
125
|
+
NewFolderName=新建文件夹
|
|
126
|
+
|
|
127
|
+
; *** “欢迎”向导页
|
|
128
|
+
WelcomeLabel1=欢迎使用 [name] 安装向导
|
|
129
|
+
WelcomeLabel2=现在将安装 [name/ver] 到您的电脑中。%n%n建议您在继续安装前关闭所有其他应用程序。
|
|
130
|
+
|
|
131
|
+
; *** “密码”向导页
|
|
132
|
+
WizardPassword=密码
|
|
133
|
+
PasswordLabel1=这个安装程序有密码保护。
|
|
134
|
+
PasswordLabel3=请输入密码,然后点击“下一步”继续。密码区分大小写。
|
|
135
|
+
PasswordEditLabel=密码(&P):
|
|
136
|
+
IncorrectPassword=您输入的密码不正确,请重新输入。
|
|
137
|
+
|
|
138
|
+
; *** “许可协议”向导页
|
|
139
|
+
WizardLicense=许可协议
|
|
140
|
+
LicenseLabel=请在继续安装前阅读以下重要信息。
|
|
141
|
+
LicenseLabel3=请仔细阅读下列许可协议。在继续安装前您必须同意这些协议条款。
|
|
142
|
+
LicenseAccepted=我同意此协议(&A)
|
|
143
|
+
LicenseNotAccepted=我不同意此协议(&D)
|
|
144
|
+
|
|
145
|
+
; *** “信息”向导页
|
|
146
|
+
WizardInfoBefore=信息
|
|
147
|
+
InfoBeforeLabel=请在继续安装前阅读以下重要信息。
|
|
148
|
+
InfoBeforeClickLabel=准备好继续安装后,点击“下一步”。
|
|
149
|
+
WizardInfoAfter=信息
|
|
150
|
+
InfoAfterLabel=请在继续安装前阅读以下重要信息。
|
|
151
|
+
InfoAfterClickLabel=准备好继续安装后,点击“下一步”。
|
|
152
|
+
|
|
153
|
+
; *** “用户信息”向导页
|
|
154
|
+
WizardUserInfo=用户信息
|
|
155
|
+
UserInfoDesc=请输入您的信息。
|
|
156
|
+
UserInfoName=用户名(&U):
|
|
157
|
+
UserInfoOrg=组织(&O):
|
|
158
|
+
UserInfoSerial=序列号(&S):
|
|
159
|
+
UserInfoNameRequired=您必须输入用户名。
|
|
160
|
+
|
|
161
|
+
; *** “选择目标目录”向导页
|
|
162
|
+
WizardSelectDir=选择目标位置
|
|
163
|
+
SelectDirDesc=您想将 [name] 安装在哪里?
|
|
164
|
+
SelectDirLabel3=安装程序将安装 [name] 到下面的文件夹中。
|
|
165
|
+
SelectDirBrowseLabel=点击“下一步”继续。如果您想选择其他文件夹,点击“浏览”。
|
|
166
|
+
DiskSpaceGBLabel=至少需要有 [gb] GB 的可用磁盘空间。
|
|
167
|
+
DiskSpaceMBLabel=至少需要有 [mb] MB 的可用磁盘空间。
|
|
168
|
+
CannotInstallToNetworkDrive=安装程序无法安装到一个网络驱动器。
|
|
169
|
+
CannotInstallToUNCPath=安装程序无法安装到一个 UNC 路径。
|
|
170
|
+
InvalidPath=您必须输入一个带驱动器卷标的完整路径,例如:%n%nC:\APP%n%n或UNC路径:%n%n\\server\share
|
|
171
|
+
InvalidDrive=您选定的驱动器或 UNC 共享不存在或不能访问。请选择其他位置。
|
|
172
|
+
DiskSpaceWarningTitle=磁盘空间不足
|
|
173
|
+
DiskSpaceWarning=安装程序至少需要 %1 KB 的可用空间才能安装,但选定驱动器只有 %2 KB 的可用空间。%n%n您一定要继续吗?
|
|
174
|
+
DirNameTooLong=文件夹名称或路径太长。
|
|
175
|
+
InvalidDirName=文件夹名称无效。
|
|
176
|
+
BadDirName32=文件夹名称不能包含下列任何字符:%n%n%1
|
|
177
|
+
DirExistsTitle=文件夹已存在
|
|
178
|
+
DirExists=文件夹:%n%n%1%n%n已经存在。您一定要安装到这个文件夹中吗?
|
|
179
|
+
DirDoesntExistTitle=文件夹不存在
|
|
180
|
+
DirDoesntExist=文件夹:%n%n%1%n%n不存在。您想要创建此文件夹吗?
|
|
181
|
+
|
|
182
|
+
; *** “选择组件”向导页
|
|
183
|
+
WizardSelectComponents=选择组件
|
|
184
|
+
SelectComponentsDesc=您想安装哪些程序组件?
|
|
185
|
+
SelectComponentsLabel2=选中您想安装的组件;取消您不想安装的组件。然后点击“下一步”继续。
|
|
186
|
+
FullInstallation=完全安装
|
|
187
|
+
; if possible don't translate 'Compact' as 'Minimal' (I mean 'Minimal' in your language)
|
|
188
|
+
CompactInstallation=简洁安装
|
|
189
|
+
CustomInstallation=自定义安装
|
|
190
|
+
NoUninstallWarningTitle=组件已存在
|
|
191
|
+
NoUninstallWarning=安装程序检测到下列组件已安装在您的电脑中:%n%n%1%n%n取消选中这些组件不会卸载它们。%n%n确定要继续吗?
|
|
192
|
+
ComponentSize1=%1 KB
|
|
193
|
+
ComponentSize2=%1 MB
|
|
194
|
+
ComponentsDiskSpaceGBLabel=当前选择的组件需要至少 [gb] GB 的磁盘空间。
|
|
195
|
+
ComponentsDiskSpaceMBLabel=当前选择的组件需要至少 [mb] MB 的磁盘空间。
|
|
196
|
+
|
|
197
|
+
; *** “选择附加任务”向导页
|
|
198
|
+
WizardSelectTasks=选择附加任务
|
|
199
|
+
SelectTasksDesc=您想要安装程序执行哪些附加任务?
|
|
200
|
+
SelectTasksLabel2=选择您想要安装程序在安装 [name] 时执行的附加任务,然后点击“下一步”。
|
|
201
|
+
|
|
202
|
+
; *** “选择开始菜单文件夹”向导页
|
|
203
|
+
WizardSelectProgramGroup=选择开始菜单文件夹
|
|
204
|
+
SelectStartMenuFolderDesc=安装程序应该在哪里放置程序的快捷方式?
|
|
205
|
+
SelectStartMenuFolderLabel3=安装程序将在下列“开始”菜单文件夹中创建程序的快捷方式。
|
|
206
|
+
SelectStartMenuFolderBrowseLabel=点击“下一步”继续。如果您想选择其他文件夹,点击“浏览”。
|
|
207
|
+
MustEnterGroupName=您必须输入一个文件夹名。
|
|
208
|
+
GroupNameTooLong=文件夹名或路径太长。
|
|
209
|
+
InvalidGroupName=无效的文件夹名字。
|
|
210
|
+
BadGroupName=文件夹名不能包含下列任何字符:%n%n%1
|
|
211
|
+
NoProgramGroupCheck2=不创建开始菜单文件夹(&D)
|
|
212
|
+
|
|
213
|
+
; *** “准备安装”向导页
|
|
214
|
+
WizardReady=准备安装
|
|
215
|
+
ReadyLabel1=安装程序准备就绪,现在可以开始安装 [name] 到您的电脑。
|
|
216
|
+
ReadyLabel2a=点击“安装”继续此安装程序。如果您想重新考虑或修改任何设置,点击“上一步”。
|
|
217
|
+
ReadyLabel2b=点击“安装”继续此安装程序。
|
|
218
|
+
ReadyMemoUserInfo=用户信息:
|
|
219
|
+
ReadyMemoDir=目标位置:
|
|
220
|
+
ReadyMemoType=安装类型:
|
|
221
|
+
ReadyMemoComponents=已选择组件:
|
|
222
|
+
ReadyMemoGroup=开始菜单文件夹:
|
|
223
|
+
ReadyMemoTasks=附加任务:
|
|
224
|
+
|
|
225
|
+
; *** TExtractionWizardPage wizard page and Extract7ZipArchive
|
|
226
|
+
ExtractionLabel=正在提取附加文件...
|
|
227
|
+
ButtonStopExtraction=停止提取(&S)
|
|
228
|
+
StopExtraction=您确定要停止提取吗?
|
|
229
|
+
ErrorExtractionAborted=提取已中止
|
|
230
|
+
ErrorExtractionFailed=提取失败:%1
|
|
231
|
+
|
|
232
|
+
; *** TDownloadWizardPage wizard page and DownloadTemporaryFile
|
|
233
|
+
DownloadingLabel=正在下载附加文件...
|
|
234
|
+
ButtonStopDownload=停止下载(&S)
|
|
235
|
+
StopDownload=您确定要停止下载吗?
|
|
236
|
+
ErrorDownloadAborted=下载已中止
|
|
237
|
+
ErrorDownloadFailed=下载失败:%1 %2
|
|
238
|
+
ErrorDownloadSizeFailed=获取下载大小失败:%1 %2
|
|
239
|
+
ErrorFileHash1=校验文件哈希失败:%1
|
|
240
|
+
ErrorFileHash2=无效的文件哈希:预期 %1,实际 %2
|
|
241
|
+
ErrorProgress=无效的进度:%1 / %2
|
|
242
|
+
ErrorFileSize=文件大小错误:预期 %1,实际 %2
|
|
243
|
+
|
|
244
|
+
; *** “正在准备安装”向导页
|
|
245
|
+
WizardPreparing=正在准备安装
|
|
246
|
+
PreparingDesc=安装程序正在准备安装 [name] 到您的电脑。
|
|
247
|
+
PreviousInstallNotCompleted=先前的程序安装或卸载未完成,您需要重启您的电脑以完成。%n%n在重启电脑后,再次运行安装程序以完成 [name] 的安装。
|
|
248
|
+
CannotContinue=安装程序不能继续。请点击“取消”退出。
|
|
249
|
+
ApplicationsFound=以下应用程序正在使用将由安装程序更新的文件。建议您允许安装程序自动关闭这些应用程序。
|
|
250
|
+
ApplicationsFound2=以下应用程序正在使用将由安装程序更新的文件。建议您允许安装程序自动关闭这些应用程序。安装完成后,安装程序将尝试重新启动这些应用程序。
|
|
251
|
+
CloseApplications=自动关闭应用程序(&A)
|
|
252
|
+
DontCloseApplications=不要关闭应用程序(&D)
|
|
253
|
+
ErrorCloseApplications=安装程序无法自动关闭所有应用程序。建议您在继续之前,关闭所有在使用需要由安装程序更新的文件的应用程序。
|
|
254
|
+
PrepareToInstallNeedsRestart=安装程序必须重启您的计算机。计算机重启后,请再次运行安装程序以完成 [name] 的安装。%n%n是否立即重新启动?
|
|
255
|
+
|
|
256
|
+
; *** “正在安装”向导页
|
|
257
|
+
WizardInstalling=正在安装
|
|
258
|
+
InstallingLabel=安装程序正在安装 [name] 到您的电脑,请稍候。
|
|
259
|
+
|
|
260
|
+
; *** “安装完成”向导页
|
|
261
|
+
FinishedHeadingLabel=[name] 安装完成
|
|
262
|
+
FinishedLabelNoIcons=安装程序已在您的电脑中安装了 [name]。
|
|
263
|
+
FinishedLabel=安装程序已在您的电脑中安装了 [name]。您可以通过已安装的快捷方式运行此应用程序。
|
|
264
|
+
ClickFinish=点击“完成”退出安装程序。
|
|
265
|
+
FinishedRestartLabel=为完成 [name] 的安装,安装程序必须重新启动您的电脑。要立即重启吗?
|
|
266
|
+
FinishedRestartMessage=为完成 [name] 的安装,安装程序必须重新启动您的电脑。%n%n要立即重启吗?
|
|
267
|
+
ShowReadmeCheck=是,我想查阅自述文件
|
|
268
|
+
YesRadio=是,立即重启电脑(&Y)
|
|
269
|
+
NoRadio=否,稍后重启电脑(&N)
|
|
270
|
+
; used for example as 'Run MyProg.exe'
|
|
271
|
+
RunEntryExec=运行 %1
|
|
272
|
+
; used for example as 'View Readme.txt'
|
|
273
|
+
RunEntryShellExec=查阅 %1
|
|
274
|
+
|
|
275
|
+
; *** “安装程序需要下一张磁盘”提示
|
|
276
|
+
ChangeDiskTitle=安装程序需要下一张磁盘
|
|
277
|
+
SelectDiskLabel2=请插入磁盘 %1 并点击“确定”。%n%n如果这个磁盘中的文件可以在下列文件夹之外的文件夹中找到,请输入正确的路径或点击“浏览”。
|
|
278
|
+
PathLabel=路径(&P):
|
|
279
|
+
FileNotInDir2=“%2”中找不到文件“%1”。请插入正确的磁盘或选择其他文件夹。
|
|
280
|
+
SelectDirectoryLabel=请指定下一张磁盘的位置。
|
|
281
|
+
|
|
282
|
+
; *** 安装状态消息
|
|
283
|
+
SetupAborted=安装程序未完成安装。%n%n请修正这个问题并重新运行安装程序。
|
|
284
|
+
AbortRetryIgnoreSelectAction=选择操作
|
|
285
|
+
AbortRetryIgnoreRetry=重试(&T)
|
|
286
|
+
AbortRetryIgnoreIgnore=忽略错误并继续(&I)
|
|
287
|
+
AbortRetryIgnoreCancel=关闭安装程序
|
|
288
|
+
|
|
289
|
+
; *** 安装状态消息
|
|
290
|
+
StatusClosingApplications=正在关闭应用程序...
|
|
291
|
+
StatusCreateDirs=正在创建目录...
|
|
292
|
+
StatusExtractFiles=正在解压缩文件...
|
|
293
|
+
StatusCreateIcons=正在创建快捷方式...
|
|
294
|
+
StatusCreateIniEntries=正在创建 INI 条目...
|
|
295
|
+
StatusCreateRegistryEntries=正在创建注册表条目...
|
|
296
|
+
StatusRegisterFiles=正在注册文件...
|
|
297
|
+
StatusSavingUninstall=正在保存卸载信息...
|
|
298
|
+
StatusRunProgram=正在完成安装...
|
|
299
|
+
StatusRestartingApplications=正在重启应用程序...
|
|
300
|
+
StatusRollback=正在撤销更改...
|
|
301
|
+
|
|
302
|
+
; *** 其他错误
|
|
303
|
+
ErrorInternal2=内部错误:%1
|
|
304
|
+
ErrorFunctionFailedNoCode=%1 失败
|
|
305
|
+
ErrorFunctionFailed=%1 失败;错误代码 %2
|
|
306
|
+
ErrorFunctionFailedWithMessage=%1 失败;错误代码 %2.%n%3
|
|
307
|
+
ErrorExecutingProgram=无法执行文件:%n%1
|
|
308
|
+
|
|
309
|
+
; *** 注册表错误
|
|
310
|
+
ErrorRegOpenKey=打开注册表项时出错:%n%1\%2
|
|
311
|
+
ErrorRegCreateKey=创建注册表项时出错:%n%1\%2
|
|
312
|
+
ErrorRegWriteKey=写入注册表项时出错:%n%1\%2
|
|
313
|
+
|
|
314
|
+
; *** INI 错误
|
|
315
|
+
ErrorIniEntry=在文件“%1”中创建 INI 条目时出错。
|
|
316
|
+
|
|
317
|
+
; *** 文件复制错误
|
|
318
|
+
FileAbortRetryIgnoreSkipNotRecommended=跳过此文件(&S) (不推荐)
|
|
319
|
+
FileAbortRetryIgnoreIgnoreNotRecommended=忽略错误并继续(&I) (不推荐)
|
|
320
|
+
SourceIsCorrupted=源文件已损坏
|
|
321
|
+
SourceDoesntExist=源文件“%1”不存在
|
|
322
|
+
ExistingFileReadOnly2=无法替换现有文件,它是只读的。
|
|
323
|
+
ExistingFileReadOnlyRetry=移除只读属性并重试(&R)
|
|
324
|
+
ExistingFileReadOnlyKeepExisting=保留现有文件(&K)
|
|
325
|
+
ErrorReadingExistingDest=尝试读取现有文件时出错:
|
|
326
|
+
FileExistsSelectAction=选择操作
|
|
327
|
+
FileExists2=文件已经存在。
|
|
328
|
+
FileExistsOverwriteExisting=覆盖已存在的文件(&O)
|
|
329
|
+
FileExistsKeepExisting=保留现有的文件(&K)
|
|
330
|
+
FileExistsOverwriteOrKeepAll=为所有冲突文件执行此操作(&D)
|
|
331
|
+
ExistingFileNewerSelectAction=选择操作
|
|
332
|
+
ExistingFileNewer2=现有的文件比安装程序将要安装的文件还要新。
|
|
333
|
+
ExistingFileNewerOverwriteExisting=覆盖已存在的文件(&O)
|
|
334
|
+
ExistingFileNewerKeepExisting=保留现有的文件(&K) (推荐)
|
|
335
|
+
ExistingFileNewerOverwriteOrKeepAll=为所有冲突文件执行此操作(&D)
|
|
336
|
+
ErrorChangingAttr=尝试更改下列现有文件的属性时出错:
|
|
337
|
+
ErrorCreatingTemp=尝试在目标目录创建文件时出错:
|
|
338
|
+
ErrorReadingSource=尝试读取下列源文件时出错:
|
|
339
|
+
ErrorCopying=尝试复制下列文件时出错:
|
|
340
|
+
ErrorReplacingExistingFile=尝试替换现有文件时出错:
|
|
341
|
+
ErrorRestartReplace=重启并替换失败:
|
|
342
|
+
ErrorRenamingTemp=尝试重命名下列目标目录中的一个文件时出错:
|
|
343
|
+
ErrorRegisterServer=无法注册 DLL/OCX:%1
|
|
344
|
+
ErrorRegSvr32Failed=RegSvr32 失败;退出代码 %1
|
|
345
|
+
ErrorRegisterTypeLib=无法注册类库:%1
|
|
346
|
+
|
|
347
|
+
; *** 卸载显示名字标记
|
|
348
|
+
; used for example as 'My Program (32-bit)'
|
|
349
|
+
UninstallDisplayNameMark=%1 (%2)
|
|
350
|
+
; used for example as 'My Program (32-bit, All users)'
|
|
351
|
+
UninstallDisplayNameMarks=%1 (%2, %3)
|
|
352
|
+
UninstallDisplayNameMark32Bit=32 位
|
|
353
|
+
UninstallDisplayNameMark64Bit=64 位
|
|
354
|
+
UninstallDisplayNameMarkAllUsers=所有用户
|
|
355
|
+
UninstallDisplayNameMarkCurrentUser=当前用户
|
|
356
|
+
|
|
357
|
+
; *** 安装后错误
|
|
358
|
+
ErrorOpeningReadme=尝试打开自述文件时出错。
|
|
359
|
+
ErrorRestartingComputer=安装程序无法重启电脑,请手动重启。
|
|
360
|
+
|
|
361
|
+
; *** 卸载消息
|
|
362
|
+
UninstallNotFound=文件“%1”不存在。无法卸载。
|
|
363
|
+
UninstallOpenError=文件“%1”不能被打开。无法卸载。
|
|
364
|
+
UninstallUnsupportedVer=此版本的卸载程序无法识别卸载日志文件“%1”的格式。无法卸载
|
|
365
|
+
UninstallUnknownEntry=卸载日志中遇到一个未知条目 (%1)
|
|
366
|
+
ConfirmUninstall=您确认要完全移除 %1 及其所有组件吗?
|
|
367
|
+
UninstallOnlyOnWin64=仅允许在 64 位 Windows 中卸载此程序。
|
|
368
|
+
OnlyAdminCanUninstall=仅使用管理员权限的用户能完成此卸载。
|
|
369
|
+
UninstallStatusLabel=正在从您的电脑中移除 %1,请稍候。
|
|
370
|
+
UninstalledAll=已顺利从您的电脑中移除 %1。
|
|
371
|
+
UninstalledMost=%1 卸载完成。%n%n有部分内容未能被删除,但您可以手动删除它们。
|
|
372
|
+
UninstalledAndNeedsRestart=为完成 %1 的卸载,需要重启您的电脑。%n%n立即重启电脑吗?
|
|
373
|
+
UninstallDataCorrupted=文件“%1”已损坏。无法卸载
|
|
374
|
+
|
|
375
|
+
; *** 卸载状态消息
|
|
376
|
+
ConfirmDeleteSharedFileTitle=删除共享的文件吗?
|
|
377
|
+
ConfirmDeleteSharedFile2=系统表示下列共享的文件已不有其他程序使用。您希望卸载程序删除这些共享的文件吗?%n%n如果删除这些文件,但仍有程序在使用这些文件,则这些程序可能出现异常。如果您不能确定,请选择“否”,在系统中保留这些文件以免引发问题。
|
|
378
|
+
SharedFileNameLabel=文件名:
|
|
379
|
+
SharedFileLocationLabel=位置:
|
|
380
|
+
WizardUninstalling=卸载状态
|
|
381
|
+
StatusUninstalling=正在卸载 %1...
|
|
382
|
+
|
|
383
|
+
; *** Shutdown block reasons
|
|
384
|
+
ShutdownBlockReasonInstallingApp=正在安装 %1。
|
|
385
|
+
ShutdownBlockReasonUninstallingApp=正在卸载 %1。
|
|
386
|
+
|
|
387
|
+
; The custom messages below aren't used by Setup itself, but if you make
|
|
388
|
+
; use of them in your scripts, you'll want to translate them.
|
|
389
|
+
|
|
390
|
+
[CustomMessages]
|
|
391
|
+
|
|
392
|
+
NameAndVersion=%1 版本 %2
|
|
393
|
+
AdditionalIcons=附加快捷方式:
|
|
394
|
+
CreateDesktopIcon=创建桌面快捷方式(&D)
|
|
395
|
+
CreateQuickLaunchIcon=创建快速启动栏快捷方式(&Q)
|
|
396
|
+
ProgramOnTheWeb=%1 网站
|
|
397
|
+
UninstallProgram=卸载 %1
|
|
398
|
+
LaunchProgram=运行 %1
|
|
399
|
+
AssocFileExtension=将 %2 文件扩展名与 %1 建立关联(&A)
|
|
400
|
+
AssocingFileExtension=正在将 %2 文件扩展名与 %1 建立关联...
|
|
401
|
+
AutoStartProgramGroupDescription=启动:
|
|
402
|
+
AutoStartProgram=自动启动 %1
|
|
403
|
+
AddonHostProgramNotFound=您选择的文件夹中无法找到 %1。%n%n您要继续吗?
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
; UnifyPy 2.0 Generated Inno Setup Script
|
|
2
|
+
; This script has been generated by UnifyPy 2.0
|
|
3
|
+
; Encoding: UTF-8
|
|
4
|
+
|
|
5
|
+
[Setup]
|
|
6
|
+
; NOTE: The value of AppId uniquely identifies this application.
|
|
7
|
+
; Do not use the same AppId value in installers for other applications.
|
|
8
|
+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
9
|
+
AppId={{{{APP_ID}}}}
|
|
10
|
+
AppName={{APP_NAME}}
|
|
11
|
+
AppVersion={{APP_VERSION}}
|
|
12
|
+
AppVerName={{APP_DISPLAY_NAME}} {{APP_VERSION}}
|
|
13
|
+
AppPublisher={{APP_PUBLISHER}}
|
|
14
|
+
{{#APP_URL}}AppPublisherURL={{APP_URL}}
|
|
15
|
+
AppSupportURL={{APP_URL}}
|
|
16
|
+
AppUpdatesURL={{APP_URL}}
|
|
17
|
+
{{/APP_URL}}DefaultDirName={autopf}\{{APP_NAME}}
|
|
18
|
+
DefaultGroupName={{APP_NAME}}
|
|
19
|
+
AllowNoIcons=yes
|
|
20
|
+
{{#LICENSE_FILE}}LicenseFile={{LICENSE_FILE}}
|
|
21
|
+
{{/LICENSE_FILE}}InfoBeforeFile=
|
|
22
|
+
InfoAfterFile=
|
|
23
|
+
OutputDir={{OUTPUT_DIR}}
|
|
24
|
+
OutputBaseFilename={{OUTPUT_FILENAME}}
|
|
25
|
+
{{#SETUP_ICON}}SetupIconFile={{SETUP_ICON}}
|
|
26
|
+
{{/SETUP_ICON}}Compression=lzma
|
|
27
|
+
SolidCompression=yes
|
|
28
|
+
WizardStyle=modern
|
|
29
|
+
|
|
30
|
+
[Languages]
|
|
31
|
+
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
32
|
+
{{#CHINESE_SUPPORT}}Name: "chinesesimplified"; MessagesFile: "{{CHINESE_ISL_PATH}}"
|
|
33
|
+
{{/CHINESE_SUPPORT}}
|
|
34
|
+
|
|
35
|
+
[Tasks]
|
|
36
|
+
{{#CREATE_DESKTOP_ICON}}Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
37
|
+
{{/CREATE_DESKTOP_ICON}}{{#CREATE_START_MENU_ICON}}Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1
|
|
38
|
+
{{/CREATE_START_MENU_ICON}}
|
|
39
|
+
|
|
40
|
+
[Files]
|
|
41
|
+
{{SOURCE_FILES}}
|
|
42
|
+
|
|
43
|
+
[Icons]
|
|
44
|
+
Name: "{group}\{{APP_DISPLAY_NAME}}"; Filename: "{app}\{{EXE_NAME}}"
|
|
45
|
+
{{#CREATE_DESKTOP_ICON}}Name: "{autodesktop}\{{APP_DISPLAY_NAME}}"; Filename: "{app}\{{EXE_NAME}}"; Tasks: desktopicon
|
|
46
|
+
{{/CREATE_DESKTOP_ICON}}{{#CREATE_START_MENU_ICON}}Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{{APP_DISPLAY_NAME}}"; Filename: "{app}\{{EXE_NAME}}"; Tasks: quicklaunchicon
|
|
47
|
+
{{/CREATE_START_MENU_ICON}}Name: "{group}\{cm:UninstallProgram,{{APP_DISPLAY_NAME}}}"; Filename: "{uninstallexe}"
|
|
48
|
+
|
|
49
|
+
[Run]
|
|
50
|
+
{{#RUN_AFTER_INSTALL}}Filename: "{app}\{{EXE_NAME}}"; Description: "{cm:LaunchProgram,{{APP_DISPLAY_NAME}}}"; Flags: nowait postinstall skipifsilent
|
|
51
|
+
{{/RUN_AFTER_INSTALL}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2008-2014 Andrey Tarantsov
|
|
4
|
+
Copyright (c) 2020 Andrew Janke
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Makefile for Cowsay
|
|
2
|
+
|
|
3
|
+
PACKAGE_TARNAME = create-dmg
|
|
4
|
+
|
|
5
|
+
prefix = /usr/local
|
|
6
|
+
exec_prefix = ${prefix}
|
|
7
|
+
bindir = ${exec_prefix}/bin
|
|
8
|
+
datarootdir = ${prefix}/share
|
|
9
|
+
datadir = ${datarootdir}
|
|
10
|
+
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
|
|
11
|
+
sysconfdir = ${prefix}/etc
|
|
12
|
+
mandir=${datarootdir}/man
|
|
13
|
+
srcdir = .
|
|
14
|
+
|
|
15
|
+
SHELL = /bin/sh
|
|
16
|
+
INSTALL = install
|
|
17
|
+
INSTALL_PROGRAM = $(INSTALL)
|
|
18
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
|
19
|
+
|
|
20
|
+
.PHONY: install uninstall
|
|
21
|
+
|
|
22
|
+
install: create-dmg
|
|
23
|
+
$(INSTALL) -d $(DESTDIR)$(prefix)
|
|
24
|
+
$(INSTALL) -d $(DESTDIR)$(bindir)
|
|
25
|
+
$(INSTALL_PROGRAM) create-dmg $(DESTDIR)$(bindir)/create-dmg
|
|
26
|
+
$(INSTALL) -d $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
|
|
27
|
+
cp -R support $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
|
|
28
|
+
cp -R examples $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
|
|
29
|
+
cp -R tests $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
|
|
30
|
+
|
|
31
|
+
uninstall:
|
|
32
|
+
rm -f $(DESTDIR)$(bindir)/create-dmg
|
|
33
|
+
rm -rf $(DESTDIR)$(datadir)/$(PACKAGE_TARNAME)
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
create-dmg
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
A shell script to build fancy DMGs.
|
|
5
|
+
|
|
6
|
+
Status and contribution policy
|
|
7
|
+
------------------------------
|
|
8
|
+
|
|
9
|
+
Create-dmg is mostly maintained by [@aonez](https://github.com/aonez) and the contributors who send pull requests.
|
|
10
|
+
The project home page is <https://github.com/create-dmg/create-dmg>.
|
|
11
|
+
|
|
12
|
+
We will merge any pull request that adds something useful and does not break existing things.
|
|
13
|
+
|
|
14
|
+
If you're an active user and want to be a maintainer, or just want to chat, please ping us on Gitter at [gitter.im/create-dmg/Lobby](https://gitter.im/create-dmg/Lobby), or [email Andrew directly](floss@apjanke.net).
|
|
15
|
+
|
|
16
|
+
Create-dmg was originally created by [Andrey Tarantsov](https://github.com/andreyvit).
|
|
17
|
+
In May 2020 [Andrew Janke](https://github.com/apjanke) helped vastly with the project.
|
|
18
|
+
|
|
19
|
+
Installation
|
|
20
|
+
------------
|
|
21
|
+
|
|
22
|
+
- You can install this script using [Homebrew](https://brew.sh):
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
brew install create-dmg
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- You can download the [latest release](https://github.com/create-dmg/create-dmg/releases/latest) and install it from there:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
make install
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- You can also clone the entire repository and run it locally from there:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
git clone https://github.com/create-dmg/create-dmg.git
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Usage
|
|
41
|
+
-----
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
create-dmg [options ...] <output_name.dmg> <source_folder>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
All contents of source\_folder will be copied into the disk image.
|
|
48
|
+
|
|
49
|
+
**Options:**
|
|
50
|
+
|
|
51
|
+
- **--volname \<name\>:** set volume name (displayed in the Finder sidebar and window title)
|
|
52
|
+
- **--volicon \<icon.icns\>:** set volume icon
|
|
53
|
+
- **--background \<pic.png\>:** set folder background image (provide png, gif, jpg)
|
|
54
|
+
- **--window-pos \<x\> \<y\>:** set position the folder window
|
|
55
|
+
- **--window-size \<width\> \<height\>:** set size of the folder window
|
|
56
|
+
- **--text-size \<text_size\>:** set window text size (10-16)
|
|
57
|
+
- **--icon-size \<icon_size\>:** set window icons size (up to 128)
|
|
58
|
+
- **--icon \<file_name\> \<x\> \<y\>:** set position of the file's icon
|
|
59
|
+
- **--hide-extension \<file_name\>:** hide the extension of file
|
|
60
|
+
- **--app-drop-link \<x\> \<y\>:** make a drop link to Applications, at location x, y
|
|
61
|
+
- **--ql-drop-link \<x\> \<y\>:** make a drop link to /Library/QuickLook, at location x, y
|
|
62
|
+
- **--eula \<eula_file\>:** attach a license file to the dmg
|
|
63
|
+
- **--rez \<rez_path\>:** specify custom path to Rez tool used to include license file
|
|
64
|
+
- **--no-internet-enable:** disable automatic mount©
|
|
65
|
+
- **--format:** specify the final image format (UDZO|UDBZ|ULFO|ULMO) (default is UDZO)
|
|
66
|
+
- **--filesystem:** specify the image filesystem (HFS+|APFS) (default is HFS+, APFS supports macOS 10.13 or newer)
|
|
67
|
+
- **--encrypt:** enable encryption for the resulting disk image (AES-256 - you will be prompted for password)
|
|
68
|
+
- **--encrypt-aes128:** enable encryption for the resulting disk image (AES-128 - you will be prompted for password)
|
|
69
|
+
- **--add-file \<target_name\> \<file|folder\> \<x\> \<y\>:** add additional file or folder (can be used multiple times)
|
|
70
|
+
- **--disk-image-size \<x\>:** set the disk image size manually to x MB
|
|
71
|
+
- **--hdiutil-verbose:** execute hdiutil in verbose mode
|
|
72
|
+
- **--hdiutil-quiet:** execute hdiutil in quiet mode
|
|
73
|
+
- **--bless:** bless the mount folder (deprecated, needs macOS 12.2.1 or older, [#127](https://github.com/create-dmg/create-dmg/pull/127))
|
|
74
|
+
- **--codesign \<signature\>:** codesign the disk image with the specified signature
|
|
75
|
+
- **--notarize \<credentials>:** notarize the disk image (waits and staples) with the keychain stored credentials
|
|
76
|
+
For more information check [Apple's documentation](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow)
|
|
77
|
+
- **--skip-jenkins:** skip Finder-prettifying AppleScript, useful in Sandbox and non-GUI environments, [#72](https://github.com/create-dmg/create-dmg/pull/72)
|
|
78
|
+
- **--sandbox-safe:** hdiutil with sandbox compatibility, do not bless and do not execute the cosmetic AppleScript (not supported for APFS disk images)
|
|
79
|
+
- **--version:** show tool version number
|
|
80
|
+
- **-h, --help:** display the help
|
|
81
|
+
|
|
82
|
+
Encryption
|
|
83
|
+
-------
|
|
84
|
+
hdiutil supports native disk image encryption using AES-256 (slower but stronger) or AES-128 (faster but weaker). Enabling disk image encryption via create-dmg will require the entry of the password during the middle (compression phase) of the process. Take care to enter the password correctly, because hdiutil will not prompt a second time to confirm the password.
|
|
85
|
+
|
|
86
|
+
Example
|
|
87
|
+
-------
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
#!/bin/sh
|
|
91
|
+
test -f Application-Installer.dmg && rm Application-Installer.dmg
|
|
92
|
+
create-dmg \
|
|
93
|
+
--volname "Application Installer" \
|
|
94
|
+
--volicon "application_icon.icns" \
|
|
95
|
+
--background "installer_background.png" \
|
|
96
|
+
--window-pos 200 120 \
|
|
97
|
+
--window-size 800 400 \
|
|
98
|
+
--icon-size 100 \
|
|
99
|
+
--icon "Application.app" 200 190 \
|
|
100
|
+
--hide-extension "Application.app" \
|
|
101
|
+
--app-drop-link 600 185 \
|
|
102
|
+
"Application-Installer.dmg" \
|
|
103
|
+
"source_folder/"
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
See the `examples` folder in the source tree for more examples.
|
|
107
|
+
|
|
108
|
+
Requirements
|
|
109
|
+
------------
|
|
110
|
+
|
|
111
|
+
Nothing except a standard installation of macOS/OS X is required.
|
|
112
|
+
|
|
113
|
+
We think this works in OS X 10.6 Snow Leopard and later.
|
|
114
|
+
|
|
115
|
+
We'd like to keep it working in as many versions as possible, but unfortunately, we just don't have test boxes running old versions of OS X adequate to make this happen. Development and testing mostly happens in the last 3-5 years' worth of macOS releases; as of 2020, this means macOS 10.12 and later.
|
|
116
|
+
|
|
117
|
+
But if you find a bug in an older version, go ahead and report it! We'll try to work with you to get it fixed.
|
|
118
|
+
|
|
119
|
+
If you're running OS X 10.5 or earlier, you're SOL. That's just too hard to deal with in 2023. ;)
|
|
120
|
+
|
|
121
|
+
Alternatives
|
|
122
|
+
------------
|
|
123
|
+
|
|
124
|
+
- [node-appdmg](https://github.com/LinusU/node-appdmg)
|
|
125
|
+
- [dmgbuild](https://pypi.python.org/pypi/dmgbuild)
|
|
126
|
+
- see the [StackOverflow question](http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
SET app_name create-dmg
|
|
2
|
+
|
|
3
|
+
VERSION create-dmg.cur create-dmg heads/master
|
|
4
|
+
|
|
5
|
+
NEWDIR build.dir temp %-build -
|
|
6
|
+
|
|
7
|
+
NEWFILE create-dmg.zip featured %.zip %
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
COPYTO [build.dir]
|
|
11
|
+
INTO create-dmg [create-dmg.cur]/create-dmg
|
|
12
|
+
INTO sample [create-dmg.cur]/sample
|
|
13
|
+
INTO support [create-dmg.cur]/support
|
|
14
|
+
|
|
15
|
+
SUBSTVARS [build.dir<alter>]/create-dmg [[]]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
ZIP [create-dmg.zip]
|
|
19
|
+
INTO [build-files-prefix] [build.dir]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
PUT megabox-builds create-dmg.zip
|
|
23
|
+
PUT megabox-builds build.log
|
|
24
|
+
|
|
25
|
+
PUT s3-builds create-dmg.zip
|
|
26
|
+
PUT s3-builds build.log
|