From f137b8269a33e02e831875c3bbb3e3b438875260 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Oct 2025 11:54:18 +0200 Subject: [PATCH 1/3] packaging --- .github/workflows/build-deb.yml | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-deb.yml diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml new file mode 100644 index 00000000..4fd70822 --- /dev/null +++ b/.github/workflows/build-deb.yml @@ -0,0 +1,43 @@ +# .github/workflows/generate-copyright.yml + +name: Generate Debian Copyright File + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: # Allows you to run this workflow manually + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # 1. Checkout code + - name: Checkout code + uses: actions/checkout@v4 + + # 2. Create the source archive debmake needs + - name: Create Source Archive + run: | + mkdir -p ../arduino-app-cli-source + rsync -av --progress . ../arduino-app-cli-source --exclude .git + cd .. + tar -czf arduino-app-cli.tar.gz arduino-app-cli-source + cd arduino-app-cli + + # 3. Install debmake + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y debmake + + # 4. Run debmake to generate the debian/ directory and its files + - name: Run debmake to create packaging files + run: debmake -y + + # 5. Upload only the copyright file as an artifact + - name: Upload copyright file + uses: actions/upload-artifact@v4 + with: + name: debian-copyright-file + path: debian/copyright \ No newline at end of file From 121378af21f37ad3d6eef553e60b9525c44b5218 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 22 Oct 2025 11:52:46 +0200 Subject: [PATCH 2/3] third party licenses do not need to be repeated --- .github/workflows/build-deb.yml | 43 --------------------------------- Taskfile.yml | 1 - 2 files changed, 44 deletions(-) delete mode 100644 .github/workflows/build-deb.yml diff --git a/.github/workflows/build-deb.yml b/.github/workflows/build-deb.yml deleted file mode 100644 index 4fd70822..00000000 --- a/.github/workflows/build-deb.yml +++ /dev/null @@ -1,43 +0,0 @@ -# .github/workflows/generate-copyright.yml - -name: Generate Debian Copyright File - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - workflow_dispatch: # Allows you to run this workflow manually - -jobs: - build: - runs-on: ubuntu-latest - - steps: - # 1. Checkout code - - name: Checkout code - uses: actions/checkout@v4 - - # 2. Create the source archive debmake needs - - name: Create Source Archive - run: | - mkdir -p ../arduino-app-cli-source - rsync -av --progress . ../arduino-app-cli-source --exclude .git - cd .. - tar -czf arduino-app-cli.tar.gz arduino-app-cli-source - cd arduino-app-cli - - # 3. Install debmake - - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y debmake - - # 4. Run debmake to generate the debian/ directory and its files - - name: Run debmake to create packaging files - run: debmake -y - - # 5. Upload only the copyright file as an artifact - - name: Upload copyright file - uses: actions/upload-artifact@v4 - with: - name: debian-copyright-file - path: debian/copyright \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index ffea9d51..98cc07df 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -146,7 +146,6 @@ tasks: --- EOF - - cat .licenses/arduino-app-cli/NOTICE >> debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright arduino-app-cli:build:local: desc: "Build the arduino-app-cli locally" From ee193d0b13cc8c24f87d62bca59778585cb8759c Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 27 Oct 2025 12:23:09 +0100 Subject: [PATCH 3/3] commit Copyright --- .gitignore | 3 +-- Taskfile.yml | 24 ------------------- .../usr/share/doc/arduino-app-cli/copyright | 15 ++++++++++++ 3 files changed, 16 insertions(+), 26 deletions(-) create mode 100644 debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright diff --git a/.gitignore b/.gitignore index 79e1daad..c161df77 100644 --- a/.gitignore +++ b/.gitignore @@ -35,5 +35,4 @@ build/ /apps # debian packaging files -/debian/arduino-app-cli/home/arduino/.local/share/arduino-app-cli/examples -/debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright +/debian/arduino-app-cli/home/arduino/.local/share/arduino-app-cli/examples \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index 98cc07df..06e54550 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -101,7 +101,6 @@ tasks: desc: Build debian package deps: - build-deb:clone-examples - - build-deb:copyright cmds: - docker build --build-arg BINARY_NAME=arduino-app-cli --build-arg DEB_NAME=arduino-app-cli --build-arg VERSION={{ .VERSION }} --build-arg ARCH={{ .ARCH }} --build-arg RELEASE={{ .RELEASE }} --output=./build -f debian/Dockerfile . vars: @@ -124,29 +123,6 @@ tasks: echo "Examples successfully cloned." silent: false - build-deb:copyright: - desc: Add dependency licenses to debian copyright file - cmds: - - mkdir -p debian/arduino-app-cli/usr/share/doc/arduino-app-cli - - | - cat > debian/arduino-app-cli/usr/share/doc/arduino-app-cli/copyright <