diff --git a/README.md b/README.md index 6b29c8b..159727d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,23 @@ NDD 具备插件编写功能,如果您愿意开发插件,还请提交给我 ;; "-DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64", ``` +- MacOSX 平台构建方案 + + ```shell + Build with the following configuration: + 1. make macosx-universal + 通用 MacOSX 平台构建(Debug). + 2. make macosx-universal-release + 通用 MacOSX 平台构建(Release). + 3. make package + 通用 MacOSX 平台构建 CPack 打包. + + # 由 CPack 驱动的打包: + # 将在 build/macosx-universal 目录中产生 dmg 文件 + # 可在 CPack 的生成目录尝试进行手动 macdeployqt 处理 + # 注:目前M1平台使用原生Qt执行此操作会损坏此包,将需要开发者签证 + ``` + - 当前的 Linux 平台构建方案 ```shell diff --git a/macos.mk b/macos.mk index cc7237e..8d7fbc4 100644 --- a/macos.mk +++ b/macos.mk @@ -1,11 +1,13 @@ Msg := 'Build with the following configuration:' One := '1. make macosx-universal' -Two := '1. make macosx-universal-release' +Two := '2. make macosx-universal-release' +Three := '3. make package' all: @echo $(Msg) - @echo $(One) "\n\t默认的通用 MacOSX 平台构建(Debug)." - @echo $(Two) "\n\t默认的通用 MacOSX 平台构建(Release)." + @echo $(One) "\n\t通用 MacOSX 平台构建(Debug)." + @echo $(Two) "\n\t通用 MacOSX 平台构建(Release)." + @echo $(Three) "\n\t通用 MacOSX 平台构建 CPack 打包." builddir := build/macosx-universal sourcedir := . @@ -22,3 +24,7 @@ macosx-universal: macosx-universal-release: cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_RELEASE) cmake --build $(builddir) -- -j$(CPUS) + + +package: macosx-universal-release + make -C $(builddir) package \ No newline at end of file