chore(makefile): add patch creation targets

This commit is contained in:
josselinonduty 2025-01-31 22:20:09 +01:00
parent dd86b22625
commit 0ed3dd5721
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -90,6 +90,18 @@ build_appimage_arm64:
@echo "Build AppImage binary"
@yarn --cwd=app run build-appimage-arm64
#! DEV
patch-new: install_deps
@echo "Setting up the development environment..."
@cd app && echo "node_modules\n.vscode\n*.diff\n*.orig" > .gitignore && git init && git add .
@cd app && git commit -m "initial commit"
@echo "You can now edit the sources in the app directory"
@echo "When you are done, commit your changes, run 'make patch-gen'."
@echo "Don't forget to rename your patch."
patch-gen:
@cd app && git format-patch -1 HEAD --stdout > ../patches/$(shell date +%y%m%d-%s).patch
#! UTILS