您的位置:首页 > 其它

[置顶] Theos 的Makefile 以及部署文件的IP 配置细节

2017-10-16 14:17 274 查看

前言

使用别名配置IP



Makefile

THEOS_DEVICE_IP=iphone  #5C9 #配置IP的host 别名
TARGET = iphone:latest:8.0
ARCHS = armv7 arm64
THEOS=/opt/theos
THEOS_MAKE_PATH=$(THEOS)/makefiles
include $(THEOS)/makefiles/common.mk

TWEAK_NAME =
Taoke_FILES = Taoke.xm

Taoke_FRAMEWORKS = UIKit, Foundation, Security, IOKit, JavaScriptCore

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec "echo '' > /var/log/syslog"


deploy

#!/bin/sh
cd `dirname $0`
make clean
make package install

scp ./taoke.lua iphone:/private/var/mobile/Media/TouchSprite/lua/#配置IP的host 别名

rm -f ./debs/*
exit 0


config 文件

# Private 192.168.2
Host iphone
HostName  192.168.2.131
User root
IdentityFile ~/.ssh/id_rsa_Theos125

# Private gitlab.v6
Host gitlab.v6
HostName  gitlab.v6
User git
IdentityFile ~/.ssh/id_rsa_q

# Private github
Host github.com
HostName  github.com
User git
IdentityFile ~/.ssh/id_rsa


总结

一个认证文件可以重复使用到不同的host

devzkndeMacBook-Pro:.ssh devzkn$  ssh-copy-id -i id_rsa_Theos125.pub root@192.168.2.150
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: