当前位置: 首页 > news >正文

公司网站制作费做无形资产广州 创意的网站设计

公司网站制作费做无形资产,广州 创意的网站设计,seo优化排名易下拉程序,seo 网站关键词优化写在前面 通过 ghidra 工具, 但是只能用命令行启动, 不太舒服, 写个脚本生成 MacOS 的 app 格式并导入启动台. 不算复杂, 主要是解析包的一些元信息还有裁剪软件图标(通过 MacOS 自带的 API) 脚本 #!/opt/homebrew/bin/python3import os import re import subprocess as sp…


写在前面

通过 ghidra 工具, 但是只能用命令行启动, 不太舒服, 写个脚本生成 MacOS 的 app 格式并导入启动台.

不算复杂, 主要是解析包的一些元信息还有裁剪软件图标(通过 MacOS 自带的 API)

脚本

#!/opt/homebrew/bin/python3import os
import re
import subprocess as spbase_path = "/Applications"
app_name = "Ghidra"
exec_file = "ghidraRun"target_path = f"{base_path}/{app_name}.app/Contents"if not os.path.exists(target_path):print(f"{target_path} not exists, creating.")cmd = f"mkdir -p {target_path}/{{MacOS,Resources}}"os.system(cmd)""" target layout
.
└── Contents├── Info.plist├── MacOS│   └── ghidraRun -> /opt/homebrew/bin/ghidraRun└── Resources└── logo.icns
"""# 0. get meta Info
_, brew_prefix = sp.getstatusoutput("brew --prefix")
_, brew_info = sp.getstatusoutput(f"brew info {app_name}")
if brew_info.find("Not installed") != -1:print(f"{app_name} not installed, install...")os.system(f"brew install {app_name}")version_num = re.match(r"==>.*?(\d+\.\d+\.\d+)[\s,]", brew_info).group(1)
exec_dir = re.findall(r"==> Artifacts\s(.*?)\(Binary", brew_info)[0].strip()
installed_dir = exec_dir[: exec_dir.rfind("/")]
img_file = f"{installed_dir}/docs/images/GHIDRA_1.png"# 1. create soft link
src_exec = f"{brew_prefix}/bin/{exec_file}"
print(f"create soft link : {src_exec} => {target_path}/MacOS/{exec_file}")
os.system(f"ln -s {src_exec} {target_path}/MacOS/{exec_file}")# 2. create icon by using sips
print(f"resize png file {img_file}")
tmp_img_file = "tmp.png"
os.system(f"sips -z 512 512 {img_file} -o {target_path}/{tmp_img_file}")
icns_file = "logo.icns"
print(f"generate icns file {icns_file}")
os.system(f"sips -s format icns {target_path}/{tmp_img_file} -o {target_path}/Resources/{icns_file}"
)
os.system(f"rm {target_path}/{tmp_img_file}")# 3. create Info.plist
info_plist = f"""<?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>{app_name}</string><key>CFBundleExecutable</key><string>{exec_file}</string><key>CFBundleIdentifier</key><string>org.{app_name}</string><key>CFBundleDisplayName</key><string>{app_name}</string><key>CFBundleVersion</key><string>{version_num}</string><key>CFBundleIconFile</key><string>{icns_file}</string>
</dict>
</plist>"""print(f"write info.plist to {target_path}/Info.plist")
with open(f"{target_path}/Info.plist", "w") as f:f.write(info_plist)

更新地址;

可以放在任意位置, 执行之后应该就会出现火龙的标志了:

在这里插入图片描述

http://www.yayakq.cn/news/167435/

相关文章:

  • 以遇见为主题做网站html做电子书网站
  • 网站建设云技术公司推荐wordpress 圆角主题
  • 澧县网站设计哪有做网站推广
  • 网站开发人员是干什么的点击最多的网站
  • 网站建设公司的方案模板wordpress插件主题集成
  • 移动网站建设专业论文四川建设人才官方网站
  • 如何做网站图片切换手游源码交易平台
  • 网站改版建设,有哪些内容网站建设基本模板介绍
  • 做网站都需要学什么语言广州app制作
  • 网站开发好做还是平面好做公司网站可以自己做吗
  • 做粉丝网站简单大方网站
  • 建站如何挣钱十个程序员必备的网站
  • icp备案网站信息查询access 数据库做网站
  • 网站程序 seo秦皇岛住房和城乡建设网官网
  • 网页设计网站制作视频教程织梦模板首页修改教程
  • 网站备案 有什么用广州楼市最新消息
  • 青岛网站设计定制安庆市建设银行网站首页
  • 电商网站介绍徐州企业网站建设
  • 做帮助手册的网站学生做兼职的网站
  • 做瓜子进出口用哪些网站携程旅行的网站建设
  • 视频网站的建设目标长沙网站建设服务商
  • 网站建设搭建步骤如何用php数据库做网站
  • 凯里网站建设哪家专业建筑清单网
  • 网站转移烟台做网站
  • 网站规划与设计大作业怎么做0基础1小时网站建设教程
  • 两学一做网站是多少做美剧网站侵权
  • 宁波网站推广服务金蝶在线登录入口
  • 做配资网站网站首页栏目怎么做
  • 手机网站封装小程序浙江建设信息网港
  • 渭南哪家公司可以做网站wordpress添加背景