@@ -60,11 +60,13 @@ Modify the provision.sh script to set up a USB filter to capture the device with
6060First of all, set up the environment as described in the
6161link:../vagrant/windows/README.md[Vagrant VM README].
6262
63- To build the project:
63+ To build the project, run in command prompt (skip the `git checkout` step to build the latest commit) :
6464
65- $ git clone --recurse-submodules https://github.com/Yubico/yubioath-desktop.git
66- $ cd yubioath-desktop
67- $ vagrant\windows\build.bat
65+ > git clone --recurse-submodules https://github.com/Yubico/yubioath-desktop.git
66+ > cd yubioath-desktop
67+ > git checkout yubioath-desktop-<VERSION>
68+ > git show --show-signature
69+ > vagrant\windows\build.bat
6870
6971The `build.bat` script will output the build version number near the beginning.
7072Use that as the `<VERSION>` in the next series of commands. If you missed it,
@@ -75,3 +77,24 @@ To build the installer, plug in the code signing YubiKey and run:
7577
7678 $ cd yubioath-desktop
7779 $ vagrant\windows\release.bat <VERSION>
80+
81+
82+ == Publishing to Ubuntu PPA
83+
84+ 1. Update version number and signoff in `debian/changelog`.
85+ 2. Build and upload package.
86+
87+ For (2) you can use the Vagrant VM in `vagrant/ppa`. You'll need to set up the
88+ VM to capture the YubiKey containing your signing key. If you use VirtualBox,
89+ you can do this by uncommenting the USB filter included in the `Vagrantfile`.
90+ Then:
91+
92+ alice@work $ cd yubioath-desktop/vagrant/ppa
93+ alice@work $ vagrant up
94+ alice@work $ vagrant ssh
95+ ubuntu@ubuntu-xenial $ gpg --recv-keys ABCDEF78
96+ ubuntu@ubuntu-xenial $ gpg2 --recv-keys ABCDEF78
97+ ubuntu@ubuntu-xenial $ gpg2 --card-status
98+ ubuntu@ubuntu-xenial $ cd yubioath-desktop
99+ ubuntu@ubuntu-xenial $ python3 compute-version.py yubioath-desktop- > VERSION
100+ ubuntu@ubuntu-xenial $ ~/scripts/make-ppa -k ABCDEF78 -p gpg2
0 commit comments