.
This commit is contained in:
1 parent
334550cef9
commit
c143311608
4 files changed
+125
-2
No files matched your search
@@ -12,6 +12,7 @@ confirm:
|
||||
|
||||
current_time = $(shell date -Iseconds)
|
||||
git_description = $(shell git describe --always --dirty)
|
||||
git_commit_count = $(shell git rev-list --count HEAD)
|
||||
linker_flags = '-s -X main.buildTime=${current_time} -X main.version=${git_description}'
|
||||
|
||||
production_host = 152.53.236.243
|
||||
@@ -46,8 +47,8 @@ build/package:
|
||||
cp ./deploy/DEBIAN/prerm /tmp/party-pkg/DEBIAN/prerm
|
||||
cp ./deploy/DEBIAN/postrm /tmp/party-pkg/DEBIAN/postrm
|
||||
chmod 755 /tmp/party-pkg/DEBIAN/postinst /tmp/party-pkg/DEBIAN/prerm /tmp/party-pkg/DEBIAN/postrm
|
||||
printf 'Package: party\nVersion: 0+%s\nArchitecture: amd64\nMaintainer: Vicente Ferrari Smith <vicenteferrarismith@gmail.com>\nDescription: Party\n' \
|
||||
'${git_description}' > /tmp/party-pkg/DEBIAN/control
|
||||
printf 'Package: party\nVersion: 0+%s.%s\nArchitecture: amd64\nMaintainer: Vicente Ferrari Smith <vicenteferrarismith@gmail.com>\nDescription: Party\n' \
|
||||
'${git_commit_count}' '${git_description}' > /tmp/party-pkg/DEBIAN/control
|
||||
dpkg-deb --build --root-owner-group /tmp/party-pkg ./party.deb
|
||||
@echo 'Package ready: ./party.deb'
|
||||
|
||||
|
||||
Reference in new issue
Block a user