-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the option to deploy with ssh instead of adb. #53
Conversation
66662ee
to
a7167ab
Compare
crossbuilder
Outdated
exec_device SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get update -o Dir::Etc::sourcelist="/tmp/repo/sources.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | ||
exec_device SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get dist-upgrade -o Dir::Etc::sourcelist="/tmp/repo/all.list" --yes --force-yes | ||
exec_device "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 1001' /etc/apt/preferences.d/extra-ppas.pref" | ||
exec_device "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 3000' /etc/apt/preferences.d/localrepo.pref" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still in doubt what the pin priority must be
crossbuilder
Outdated
exec_device "printf 'Package: *\nPin: release o=local\nPin-Priority: 2000\n\nPackage: *\nPin: release a=$SERIES*\nPin-Priority: 50' | SUDO_ASKPASS=/tmp/askpass.sh sudo -A tee /etc/apt/preferences.d/localrepo.pref" | ||
# exec_device SUDO_ASKPASS=/tmp/askpass.sh sudo -A apt-get update | ||
else | ||
exec_device /tmp/repo/$CREATE_REPO_SCRIPT /tmp/repo | ||
fi; | ||
|
||
exec_device "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 50' /etc/apt/preferences.d/extra-ppas.pref" | ||
exec_device "SUDO_ASKPASS=/tmp/askpass.sh sudo -A sed -i '/Pin-Priority/c\Pin-Priority: 50' /etc/apt/preferences.d/localrepo.pref" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to localrepo because extra-ppas didn't exist.
exec_device sh /tmp/$(basename $POST_DEPLOY_SCRIPT) | ||
else | ||
echo "${POSITIVE_COLOR}If a script named $POST_DEPLOY_SCRIPT existed, it would be executed on device after every deploy.${NC}" | ||
fi | ||
} | ||
|
||
undeploy_on_device () { | ||
echo "Undeployment on device is not working yet" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea how to do this at the moment....
--no-deb option fails at the moment. |
Also some small updates
I'm closing this since we already merged #62, but please feel free to reopen if you believe there are more changes that need to go in. |
Add the option to deploy with ssh instead of adb.
Also some small updates
Pushed here as a draft, because it is not finished but gives already the direction for adding the ssh option