From 6067da67932bd09cf25f19a69bbef3c2e51e81fa Mon Sep 17 00:00:00 2001 From: Joe Testa Date: Tue, 29 Sep 2020 10:24:36 -0400 Subject: [PATCH] Updated packaging notes and snap build process. --- packages/Makefile.snap | 2 +- packages/notes.txt | 10 ++++++++-- packages/windows_build.txt | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/Makefile.snap b/packages/Makefile.snap index 93608c0..90e5e21 100644 --- a/packages/Makefile.snap +++ b/packages/Makefile.snap @@ -2,7 +2,7 @@ all: cp ../ssh-audit.py sshaudit/sshaudit.py cp ../README.md sshaudit/README.md echo -e "\n\nDid you remember to bump the version number in snapcraft.yaml?\n\n" - snapcraft + snapcraft --use-lxd clean: rm -rf parts/ prime/ snap/ stage/ build/ dist/ *.egg-info/ sshaudit/sshaudit.py sshaudit/LICENSE sshaudit/README.md ssh-audit*.snap diff --git a/packages/notes.txt b/packages/notes.txt index a02cf9b..fcfb1d3 100644 --- a/packages/notes.txt +++ b/packages/notes.txt @@ -36,6 +36,12 @@ $ pip3 install ssh-audit = Snap = -To create the snap package, simply run: +To create the snap package, run a fully-updated Ubuntu Server 20.04 VM. -$ make -f Makefile.snap +As root, run: + +# lxd init + +Leave all options default. Bump the version number in snapcraft.yaml. Then run: + +# make -f Makefile.snap diff --git a/packages/windows_build.txt b/packages/windows_build.txt index cfe7b9b..7b58223 100644 --- a/packages/windows_build.txt +++ b/packages/windows_build.txt @@ -16,4 +16,4 @@ On a Windows machine, do the following: 4.) Rename the "dist\ssh-audit\" folder to "dist\ssh-audit vX.X.X\" -5.) Zip the "dist\ssh-audit vX.X.X\" folder and name it "ssh-audit_vX.X.X.zip". +5.) Zip the "dist\ssh-audit vX.X.X\" folder and name it "windows_ssh-audit_vX.X.X.zip" (hint: zip windows_ssh-audit_vX.X.X.zip -r "ssh-audit vX.X.X").