Skip to content

feat: replace build scripts with Makefile with support of fpm-based .deb packaging#52

Open
bowling233 wants to merge 1 commit intomrhaoxx:mainfrom
ZJUSCT:main
Open

feat: replace build scripts with Makefile with support of fpm-based .deb packaging#52
bowling233 wants to merge 1 commit intomrhaoxx:mainfrom
ZJUSCT:main

Conversation

@bowling233
Copy link
Copy Markdown

@bowling233 bowling233 commented Apr 7, 2026

Consolidate build.sh and build-deb.sh into a single Makefile with
multi-arch support. Targets include linux-amd64, linux-arm64 (binary
builds), deb-amd64, deb-arm64 (.deb packages), ui (frontend), and
clean. fpm metadata and file mappings are centralized in .fpm.

Copilot AI review requested due to automatic review settings April 7, 2026 20:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Debian packaging support for Netgate/OpenNG using fpm, including a build script and a systemd unit to run the installed binary.

Changes:

  • Added build-deb.sh to build the UI + Go binary and produce an .deb.
  • Added .fpm options file and a new packaged systemd unit (packaging/netgate.service).
  • Updated .gitignore and adjusted ui/html/package-lock.json metadata.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ui/html/package-lock.json Lockfile metadata changes (removal of some peer markers).
packaging/netgate.service New systemd unit intended for packaged installs.
build-deb.sh New build-and-package script producing netgate_<version>_amd64.deb.
.gitignore Ignores build artifacts: binary and .deb outputs.
.fpm Defines fpm package metadata and file mappings (config + service unit).
Files not reviewed (1)
  • ui/html/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build-deb.sh Outdated
Comment thread build-deb.sh Outdated
Comment thread build-deb.sh Outdated
Comment thread packaging/netgate.service Outdated
Consolidate build.sh and build-deb.sh into a single Makefile with
multi-arch support. Targets include linux-amd64, linux-arm64 (binary
builds), deb-amd64, deb-arm64 (.deb packages), ui (frontend), and
clean. fpm metadata and file mappings are centralized in .fpm.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bowling233 bowling233 changed the title feat: add fpm-based .deb packaging feat: replace build scripts with Makefile with support of fpm-based .deb packaging Apr 8, 2026
@bowling233
Copy link
Copy Markdown
Author

Fixed suggestions from Copilot and refined Makefile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants