Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

wouter182
Copy link

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

@wouter182 wouter182 force-pushed the master branch 5 times, most recently from 66662ee to a7167ab Compare May 16, 2021 13:17
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"
Copy link
Author

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"
Copy link
Author

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"
Copy link
Author

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....

@wouter182
Copy link
Author

This will solve #42 and #14

I don't have an android device with ubuntu touch, hence I can not test it.

@wouter182 wouter182 marked this pull request as ready for review May 16, 2021 13:33
@wouter182 wouter182 marked this pull request as draft May 16, 2021 19:41
@wouter182
Copy link
Author

--no-deb option fails at the moment.

@mardy
Copy link
Member

mardy commented Feb 12, 2022

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.

@mardy mardy closed this Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants