From 592e2d03b8009fbb684888625777fbd8b4547244 Mon Sep 17 00:00:00 2001 From: ying32 Date: Fri, 10 May 2019 16:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E5=96=84darwin?= =?UTF-8?q?=E7=9A=84=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/rpbuild.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/rpbuild.go b/build/rpbuild.go index f08c5c0..f5a7c1f 100644 --- a/build/rpbuild.go +++ b/build/rpbuild.go @@ -196,9 +196,13 @@ func createZipFile(zipFileName string, isGUI bool) error { } case "darwin": if runtime.GOARCH == "386" { - // 产生一个app - //pkgMacOSApp("../rproxy") + pkgMacOSApp("../rproxy_GUI") + compressFile("./rproxy.app/Contents/PkgInfo", "rproxy.app/Contents/PkgInfo") + compressFile("./rproxy.app/Contents/Info.plist", "rproxy.app/Contents/Info.plist") + compressFile("./rproxy.app/Contents/Resources/rproxy.icns", "rproxy.app/Contents/Resources/rproxy.icns") + compressFile("./rproxy.app/Contents/MacOS/rproxy", "rproxy.app/Contents/MacOS/rproxy") + compressFile("./rproxy.app/Contents/MacOS/liblcl.dylib", "rproxy.app/Contents/MacOS/liblcl.dylib") } } }