Skip to content

Commit

Permalink
Packaging: Snap: Try to run snap process on dockered Arch
Browse files Browse the repository at this point in the history
Issue #37
  • Loading branch information
pentix committed Oct 21, 2019
1 parent e3067d1 commit 88652c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packaging/snap/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
all:
docker run --rm -id --workdir=/snap --name=qjournalctl-snap --volume=$(realpath .):/out ubuntu
docker run --rm -id --workdir=/snap --name=qjournalctl-snap --volume=$(realpath .):/out archlinux/base
touch qjournalctl_0.6_amd64.snap

docker exec -i qjournalctl-snap apt-get update
docker exec -i qjournalctl-snap apt-get -y install snapd snapcraft
docker exec -i qjournalctl-snap pacman -Syy
docker exec -i qjournalctl-snap pacman -S git
docker exec -i qjournalctl-snap git clone https://aur.archlinux.org/yay.gitcd yay
docker exec -i qjournalctl-snap bash -c "cd yay ; makepkg -si"

docker cp snapcraft.yaml qjournalctl-snap:/snap/
docker exec -i qjournalctl-snap snapcraft
docker exec -i qjournalctl-snap bash -c 'cp /snap/*.snap /out'

docker stop qjournalctl-snap

0 comments on commit 88652c3

Please sign in to comment.