generated from ext/template
feat(project): configure
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
2945b8c4c2
commit
2f69d35595
6 changed files with 56 additions and 24 deletions
10
Makefile
10
Makefile
|
|
@ -1,16 +1,14 @@
|
|||
|
||||
package = mypackage.deb
|
||||
package = waybar-main.deb
|
||||
|
||||
.PHONY: compile
|
||||
compile:
|
||||
cd upstream && echo compile
|
||||
cd upstream && meson setup build && ninja -C build
|
||||
|
||||
.PHONY: dpkg
|
||||
dpkg:
|
||||
mkdir -p deb-package/usr/bin/
|
||||
cp upstream/bin deb-package/usr/bin/
|
||||
cp upstream/build/waybar deb-package/usr/bin/
|
||||
chmod -R o-w deb-package/
|
||||
sed -i "s|%date%|`date +%Y%m%d`|g" deb-package/DEBIAN/control
|
||||
sed -i "s|%hash%|$(commit_abbrev)|g" deb-package/DEBIAN/control
|
||||
sed -i "s|%date%|`date +%Y%m%d%H%M%S`|g" deb-package/DEBIAN/control
|
||||
dpkg-deb --build deb-package/ $(package)
|
||||
@curl --user CIBot:$(password) --upload-file $(package) $(CI_FORGE_URL)/api/packages/$(CI_REPO_OWNER)/debian/pool/noble/main/upload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue