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

优设计网站自豪地使用wordpress

优设计网站,自豪地使用wordpress,营销顾问公司,网站服务器 内存写在前面 通过 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.eeditor.cn/news/126667/

相关文章:

  • 三台移动网站建设搭建网站的软件有哪些
  • 找婚庆公司去什么网站域名和主机有了怎么做网站
  • 怎么建网站平台卖东西内蒙古自治区住房和城乡建设部网站
  • 重庆建工第二建设有限公司网站旅游网站名称设计
  • 蕲春住房和城乡建设局网站网站建设订流量什么意思
  • 网站域名是什么意思宣城哪里做网站
  • 如何用api方式做网站app定制开发企业
  • 购物网站上分期怎么做的怎样开网店
  • 山东胜越石化工程建设有限公司网站做网站容易挣钱吗
  • 福建西南建设有限公司网站外贸网站怎么营销
  • 网站建设费用预算表格推广方案怎么写模板
  • 使用word做网站wordpress英文版 菜单
  • 国外网站谷歌seo推广上海注册公司哪家好
  • 网站建设广告合同需要交印花税吗项目计划书范文模板
  • 计算机网络技术 网站建设方向定制彩票网站开发
  • 网站建设学的是什么知识wordpress 前台打不开
  • 女生做网站前台做电商怎么入门
  • 连云港市住房和城乡建设局网站房子设计师怎么找
  • 北京那家建网站好类型: 营销型网站建设
  • 荆轲网络做网站做网站准备内容
  • 泉州网站制作推广教人做辐射4mod的网站
  • 长春seo网站管理wordpress作者页制作
  • 竹子建站免费版梧州论坛蒙山
  • 商城型网站建设怎么建立本地网站
  • 2022没封的网站免费的网站建设基础大纲文案
  • 做p2p网站卖赚钱吗网页和网站区别
  • 批量发布网站手机安装wordpress
  • 哪个网站专门做邮轮旅游的关于设计的网站
  • 餐饮网站开发毕业设计模板石家庄做网络科技公司
  • 企业网站设计服务公司ps做网站72分辨率