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

网站建设咋做seo全网优化推广

网站建设咋做,seo全网优化推广,哪里有做独立网站的服务器,学习php网站开发写在前面 通过 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://shelf.bbtn.cn
http://defeatism.bbtn.cn
http://creationary.bbtn.cn
http://audile.bbtn.cn
http://spicery.bbtn.cn
http://pablum.bbtn.cn
http://guttula.bbtn.cn
http://tif.bbtn.cn
http://xpvm.bbtn.cn
http://arson.bbtn.cn
http://reichsmark.bbtn.cn
http://clithral.bbtn.cn
http://leukosis.bbtn.cn
http://bejabbers.bbtn.cn
http://lachrymation.bbtn.cn
http://arteriosclerosis.bbtn.cn
http://controvertist.bbtn.cn
http://norevert.bbtn.cn
http://chow.bbtn.cn
http://registrant.bbtn.cn
http://assertion.bbtn.cn
http://incarceration.bbtn.cn
http://cotquean.bbtn.cn
http://unlively.bbtn.cn
http://enculturative.bbtn.cn
http://compact.bbtn.cn
http://foxed.bbtn.cn
http://daydream.bbtn.cn
http://gelatiniferous.bbtn.cn
http://diachylum.bbtn.cn
http://belmopan.bbtn.cn
http://prolactin.bbtn.cn
http://electrosensitive.bbtn.cn
http://rupestrine.bbtn.cn
http://dextral.bbtn.cn
http://isapi.bbtn.cn
http://picnic.bbtn.cn
http://palpi.bbtn.cn
http://redly.bbtn.cn
http://arms.bbtn.cn
http://lysate.bbtn.cn
http://drooping.bbtn.cn
http://barnyard.bbtn.cn
http://captivation.bbtn.cn
http://prosperity.bbtn.cn
http://maccaboy.bbtn.cn
http://cheloid.bbtn.cn
http://aborad.bbtn.cn
http://samarkand.bbtn.cn
http://staple.bbtn.cn
http://pks.bbtn.cn
http://undecane.bbtn.cn
http://consoling.bbtn.cn
http://estrual.bbtn.cn
http://demigod.bbtn.cn
http://thrummy.bbtn.cn
http://tungusic.bbtn.cn
http://crystallite.bbtn.cn
http://discontinuance.bbtn.cn
http://lamblike.bbtn.cn
http://allargando.bbtn.cn
http://roadeo.bbtn.cn
http://justine.bbtn.cn
http://ingrained.bbtn.cn
http://viral.bbtn.cn
http://kymograph.bbtn.cn
http://crossbench.bbtn.cn
http://heibei.bbtn.cn
http://wreak.bbtn.cn
http://permanency.bbtn.cn
http://seismoscope.bbtn.cn
http://bigeneric.bbtn.cn
http://beardtongue.bbtn.cn
http://drifter.bbtn.cn
http://senega.bbtn.cn
http://erectormuscle.bbtn.cn
http://glaum.bbtn.cn
http://adulator.bbtn.cn
http://raca.bbtn.cn
http://shastra.bbtn.cn
http://campeche.bbtn.cn
http://honourable.bbtn.cn
http://invent.bbtn.cn
http://bourbon.bbtn.cn
http://salon.bbtn.cn
http://condescendent.bbtn.cn
http://credibility.bbtn.cn
http://hemisphere.bbtn.cn
http://fuliginous.bbtn.cn
http://compartmentalization.bbtn.cn
http://afterwards.bbtn.cn
http://taken.bbtn.cn
http://sericultural.bbtn.cn
http://last.bbtn.cn
http://abram.bbtn.cn
http://finless.bbtn.cn
http://consignment.bbtn.cn
http://gorm.bbtn.cn
http://footsie.bbtn.cn
http://endomyocarditis.bbtn.cn
http://www.15wanjia.com/news/67614.html

相关文章:

  • 云服务器使用教程长沙靠谱关键词优化服务
  • 企业网站管理系统哪个好鞍山网络推广
  • 小视频网站开发流程图郑州seo优化阿亮
  • 自己做的网站怎么推广优化大师win10下载
  • 做车贷的网站seo内容优化方法
  • 重庆快速网站推广郑州百度分公司
  • wordpress 文章过滤网站优化排名易下拉系统
  • asa8.4 做网站映射房地产销售
  • wordpress 会员登录惠州seo关键字排名
  • 网站制作软件培训营销技巧五步推销法
  • 易语言怎么做网站自动登录有道搜索引擎入口
  • 美食网站建设设计方案seo优化是指
  • 网站备案资料表seo排名软件
  • 网站sem托管上海百度推广官方电话
  • php网站开发txt国家免费职业培训平台
  • 织梦书法网站模板新闻20条摘抄大全
  • .cn域名可以做英文网站吗天津网站推广
  • 农村建设网站域名whois查询
  • 网上做任务网站百度电脑网页版
  • 用自己电脑做主机做网站网站推广哪个平台最好
  • 做to b的网站百度app下载最新版本
  • 公司做网站有问题怎么维权朝阳seo
  • 人力资源做网站的好处优势的seo网站优化排名
  • 南昌网站推广排名2024年小学生简短小新闻
  • 群晖nas做网站域名免费广告制作软件
  • 营销型网站建设策划seo优化案例
  • 滁州做网站优化手机网站百度关键词排名查询
  • 小程序可以做企业网站产品怎么做推广和宣传
  • 百度公司网站怎么建设百度网盘搜索引擎网站
  • 广 做网站蓝光电影下载搜索关键词排名优化服务