如何从shc编译的可执行文件bash生成捆绑应用程序MacOs
我想创建一个应用程序(捆绑在一个目录中),就像我们在.dmg中找到的那样,从一个用shc编译的单个文件开始(编译bash以隐藏代码) 它的名字是如何从shc编译的可执行文件bash生成捆绑应用程序MacOs,bash,macos,directory,info.plist,Bash,Macos,Directory,Info.plist,我想创建一个应用程序(捆绑在一个目录中),就像我们在.dmg中找到的那样,从一个用shc编译的单个文件开始(编译bash以隐藏代码) 它的名字是appname,它是一个已编译的Unix可执行文件,如果我双击它,它将在终端中安全启动 我想给他一个图标,然后把它打包 mac应用程序只有这样一个目录: appname.app structure: Contents - Info.plist + MacOs - appname + Resources - icon.icon 我还用表2-6
appname
,它是一个已编译的Unix可执行文件,如果我双击它,它将在终端中安全启动
我想给他一个图标,然后把它打包
mac应用程序只有这样一个目录:
appname.app structure:
Contents
- Info.plist
+ MacOs
- appname
+ Resources
- icon.icon
我还用表2-6搜索了表2-3上最常用于macOS和iOS的捆绑结构,并读取了Info.plist文件的最小值
我做了这个:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>appname</string>
<key>CFBundleDisplayName</key>
<string>appname</string>
<key>CFBundleIdentifier</key>
<string>hehjufhbeeu.hbfujfbu.com</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>aaaa</string>
<key>CFBundleExecutable</key>
<string>appname</string>
<key>CFBundleIconFile</key>
<string>icon</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string></string>
</array>
</dict>
</plist>
CFBundleName
appname
CbundleDisplayName
appname
CbundleIdentifier
hehjufhbeeu.hbfujfbu.com
循环流化床锅炉
1
CbundlePackageType
应用
CFBundleSignature
aaaa
Cbundlexecutable
appname
循环流化床锅炉
偶像
UIRequiredDeviceCapabilities
应用程序跳转到任务栏上,但没有启动(并使我的处理器过载)
有人知道怎么可能吗
救命