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

一个做微信文章的网站莱芜都市网房产网

一个做微信文章的网站,莱芜都市网房产网,深圳外包软件开发,淮北论坛创建文明城市写在前面 通过 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 ghidraRuntarget_path f{base_path}/{app_name}.app/Contentsif not os.path.exists(target_path):print(f{target_path} not exists, creating.)cmd fmkdir -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(fbrew info {app_name}) if brew_info.find(Not installed) ! -1:print(f{app_name} not installed, install...)os.system(fbrew 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(fcreate soft link : {src_exec} {target_path}/MacOS/{exec_file}) os.system(fln -s {src_exec} {target_path}/MacOS/{exec_file})# 2. create icon by using sips print(fresize png file {img_file}) tmp_img_file tmp.png os.system(fsips -z 512 512 {img_file} -o {target_path}/{tmp_img_file}) icns_file logo.icns print(fgenerate icns file {icns_file}) os.system(fsips -s format icns {target_path}/{tmp_img_file} -o {target_path}/Resources/{icns_file} ) os.system(frm {target_path}/{tmp_img_file})# 3. create Info.plist info_plist f?xml version1.0 encodingUTF-8? !DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd plist version1.0 dictkeyCFBundleName/keystring{app_name}/stringkeyCFBundleExecutable/keystring{exec_file}/stringkeyCFBundleIdentifier/keystringorg.{app_name}/stringkeyCFBundleDisplayName/keystring{app_name}/stringkeyCFBundleVersion/keystring{version_num}/stringkeyCFBundleIconFile/keystring{icns_file}/string /dict /plistprint(fwrite info.plist to {target_path}/Info.plist) with open(f{target_path}/Info.plist, w) as f:f.write(info_plist)更新地址; 可以放在任意位置, 执行之后应该就会出现火龙的标志了:
http://www.pierceye.com/news/517044/

相关文章:

  • 公司介绍网站怎么做的苏州网页制作招聘
  • 天长网站建设黄骅市长
  • 深圳网站维护页面设计WordPress在线留言插件
  • 网站改版的几个建议夜夜夜在线观看
  • 网站开发和 app开发的区别百度推广管家
  • 门窗网站制作宣传语建设一个商城式网站可以吗
  • 网站优化推广公司北京软件开发公司滕迎江
  • 网站建立的连接不安全怎么解决网站如何做数据库
  • 营销型制作网站公司重庆蒲公英网站建设公司
  • 官方网站找工作公众号中国航发网上采购平台
  • 大连网站制作仟亿科技个人网站建站步骤
  • 网站php文件上传成都网站搜索排名优化哪家好
  • 南京做网站费用做网站的服务器配置
  • 外贸用什么平台自建站较好门户网站盈利
  • 外包兼职做图的网站做视频网站用哪个模板
  • 全球购物网站大全百度网盟推广官方网站
  • 计算机网站维护建设深圳外网站建设
  • 贵州公明建设投资咨询有限公司官方网站小说网站开发对影成三人小说
  • 软件分享网站不一样的婚恋网站怎么做
  • 如何维护给做网站的客户公司变更名称和经营范围
  • 网站建设维护php建站最好的公司排名
  • 济南1951年建站wordpress 描述
  • 政务网站建设信息嵊州网站制作
  • 我的网站突然找不到网页了seo是啥意思
  • 黑河做网站的公司平面设计现在怎么样
  • 银川网站建站中国建设银行人力资源网站
  • 建设部考试中心网站用自己的ip怎么查看dw8建设的网站
  • 九江网站建设九江商标设计网页
  • 网站建设资格预审公告附近广告设计与制作门店电话
  • 百度权重站长工具网页制作工具哪些好用