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 a Release file to package and sign #84

Closed
tobyweston opened this issue Feb 11, 2019 · 3 comments
Closed

Add a Release file to package and sign #84

tobyweston opened this issue Feb 11, 2019 · 3 comments
Labels
package .deb packaging related
Milestone

Comments

@tobyweston
Copy link
Owner

See #83 (and #70 whilst you're there)

@tobyweston
Copy link
Owner Author

See sbt/sbt-native-packager#1129 for a summary of if the sbt native packager could help. Unfortunately not 😢 but thanks to @muuki88 for the packager and stay awesome! 👍

@tobyweston
Copy link
Owner Author

tobyweston commented Jul 16, 2019

See:

Possible steps:

  1. create the archive
  2. sign it
  3. publish key (using debian-archive-keyring?)
# create release file
apt-ftparchive release

# sign it
gpg --clearsign -o InRelease Release 
gpg -abs -o Release.gpg Release

# publish it
???

Links:

@tobyweston tobyweston changed the title Add a Release file to package Add a Release file to package and sign Jul 16, 2019
@tobyweston tobyweston added this to the 2.2 milestone Jul 16, 2019
tobyweston added a commit that referenced this issue Aug 29, 2019
tobyweston added a commit that referenced this issue Aug 29, 2019
@tobyweston
Copy link
Owner Author

Using aptly, I've managed to create the following repo structure. It's very different than the hand rolled version but switching the sources.list on a Pi with TM already installed, seems to work fine.

├── dists
    │   └── stable                          <- distribution
    │       ├── Contents-armhf.gz
    │       ├── InRelease
    │       ├── Release
    │       ├── Release.gpg
    │       └── temperature-machine         <- component (defaults to main)
    │           ├── Contents-armhf.gz       
    │           └── binary-armhf            <- architecture
    │               ├── Packages
    │               ├── Packages.bz2
    │               ├── Packages.gz
    │               └── Release
    └── pool
        └── temperature-machine
            └── t
                └── temperature-machine
                    ├── temperature-machine_2.1_all.deb
                    └── temperature-machine_2.2_all.deb

aptly would replace the existing dpkg-scanpackages mechanism and signs everything as well as create additional files like the InRelease file.

User's would have to change the entry in sources.list to the following.

deb http://robotooling.com/debian/ stable temperature-machine

and manually import my key (which on the Pi, requires sudo)

sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-keys 00258F48226612AE

Still a few more things to figure out and to write up but I think this is the way I'll go.

tobyweston added a commit that referenced this issue Aug 31, 2019
… -component=temperature-machine badrobot-releases
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
…res=armhf -gpg-key=00258F48226612AE -passphrase=doesn't-work publish repo badrobot-releases
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Aug 31, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
… -component=temperature-machine badrobot-releases
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
…res=armhf -gpg-key=00258F48226612AE -passphrase=doesn't-work publish repo badrobot-releases
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
tobyweston added a commit that referenced this issue Sep 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package .deb packaging related
Projects
None yet
Development

No branches or pull requests

1 participant