16 Star 1 Fork 1

openKylin / win-dependency

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

依赖相关 Step 定义规范

1. archive_extract 与 cab_extract

archive_extract 和 cab_extract 的作用都是下载并解压缩文件到指定目录,但是之所以要用两个 action 表示是因为 cab 压缩包可能是 exe 自解压格式封装的,在自动类型识别时不太容易区分是正常 exe 程序还是 cab 压缩包格式,故此增加 cab_extract 专指 exe 封装格式的压缩包,降低编程复杂度。 archive_extract 支持的压缩包格式包括: "zip", "rar", "7z", "cab", "xz", "gz"

这两个 action 的格式如下:

- action: archive_extract  # 或者cab_extract
  file_name: d3dx9.tar.xz  # 暂未使用
  url: https://proxy.usebottles.com/redistributable/dependencies/d3dx9.tar.xz     # 下载链接
  file_checksum: 0e444b86310e732f50a971466f3f06a3  #暂未使用
  file_size: 19651992				# 暂未使用
  dest: temp/d3dx9/					# 解压的目标路径。均使用相对路径

2. install_fonts

将一种字体文件拷贝到系统目录中。

action 格式示例如下:

- action: install_fonts
  url: temp/consolas-fonts-tts.tar/ # archive_extract动作解压后的文件路径
  fonts:             				# url指定的目录下字体文件列表
  - Consolas-Bold.ttf

3. register_font

将一种字体文件注册到系统注册表中。 action 格式示例如下:

- action: register_font
  name: Source Han Sans K Bold          # 字体名
  file: SourceHanSans.ttc               # 文件名

4. replace_font

Replacement Font,将一种字体替换为另一种字体。 注册表位置:HKEY_CURRENT_USER/Software/Wine/Fonts/Replacement

action 格式示例如下:

- action: replace_font
  font: Source Han Sans TC
  replace:
  - DFKai-SB
  - Microsoft JhengHei
  - Microsoft JhengHei UI

上面的例子意思是将 replace 数组中的字体替换为 font 指定的数组。

5. copy_file

将下载、解压后的文件从一个地方拷贝到另一个地方。

action 格式示例如下:

- action: copy_file
  file_name: '*.dll'					# 文件名可以包含通配符 *
  url: temp/W2KSP4_EN/i386/		# 下载、解压后的文件路径
  dest: SXEarth4.2.0/bin_32		#	目标路径,使用C盘下的相对路径。实际路径c:/SXEarth4.2.0/bin_32

6. override_dll

指定如何处理特定的 DLL,native 或 n 使用 Microsoft Windows 的.DLL 文件。builtin 或 b 使用 wine 自己实现的“内置的”DLL 。

对应注册表位置:HKEY_CURRENT_USER\Software\Wine\DllOverrides

action 支持两种格式,示例如下:

# 格式一:
- action: override_dll
  dll: riched20							# dll 文件名称
  type: native,builtin			# native优先。可是是 n,b或b,n或b或n

# 格式二:
- action: override_dll
  bundle:
    - value: odbccp32				# dll 文件名称
      data: native,builtin	# native优先。可是是 n,b或b,n或b或n
    - value: mtxdm
      data: native,builtin
    - value: odbc32
      data: native,builtin
    - value: oledb32
      data: native,builtin

7. set_register_key

设置特定注册表项。

action 格式示例如下:

- action: set_register_key
  key: HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full
  value: Install
  data: '0001'
  type: REG_DWORD

8. set_windows

配置 wine 容器的 windows 版本。

action 格式示例如下:

- action: set_windows
  version: win7

supported versions:

  • win10 (Microsoft Windows 10)
  • win81 (Microsoft Windows 8.1)
  • win8 (Microsoft Windows 8)
  • win7 (Microsoft Windows 7)
  • win2008r2 (Microsoft Windows 2008 R1)
  • win2008 (Microsoft Windows 2008)
  • winxp (Microsoft Windows XP)

9. install

安装 exe 或 msi 类型可执行程序文件。

action 格式示例如下:

- action: install_exe
  environment:														# 安装时的环境变量
    WINEDLLOVERRIDES: fusion=b
  file_name: dotNetFx40_Full_x86_x64.exe # 如果是压缩包文件此处要填写解压后要执行的exe文件路径,如果有多级目录要包含上层目录
  url: http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe						# 下载链接
  arguments: /q													# 安装参数,/q 静默安装
  file_checksum: 251743dfd3fda414570524bac9e55381	#暂未使用
  file_size: 50449456										#暂未使用

10. register_dll

在 windows 上注册 OLE 控件(DLL 或 ActiveX )。activex 不注册是不能够被系统识别和使用的。例如 jet40.dll、mstscax.dll 和 mdac28.dll 就是需要注册才能使用。

暂未实现

action 格式示例如下:

- action: register_dll
  dll: mstscax							# dll 文件名称

11. uninstall

软件卸载。

暂未实现

action 格式示例如下:

- action: uninstall
  file_name: Wine Mono
GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

暂无描述 展开 收起
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/openkylin/win-dependency.git
git@gitee.com:openkylin/win-dependency.git
openkylin
win-dependency
win-dependency
master

搜索帮助