Skip to content

Commit

Permalink
unpack and actually commit only needed files
Browse files Browse the repository at this point in the history
  • Loading branch information
caveman99 committed Oct 6, 2024
1 parent 127164e commit 2889b22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/fetch_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ main() {
if release=$(curl -fqs -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${ARTIFACTS_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/${repo}/releases); then
echo $release
tag="$(echo "$release" | jq -r '.[0].tag_name')"
zip_files="$(echo "$release" | jq -r '.[0].assets[] | select(.name | endswith(".zip")) | .name')"
zip_files="$(echo "$release" | jq -r '.[0].assets[] | select(().name | startswith("firmware-")) and (.name | endswith(".zip"))) | .name')"
echo "Parsing repo $repo at $tag"
if [ -n "$zip_files" ]; then
mkdir -p "firmware-$tag"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
export GPG_FINGERPRINT="${{ steps.import_gpg.outputs.fingerprint }}"
export ORIGIN="${{ steps.import_gpg.outputs.name }}"
.github/scripts/build_repo.sh
- name: Fetch release zips and unpack them
run: |
export ARTIFACTS_TOKEN="${{ secrets.ARTIFACTS_TOKEN }}"
Expand All @@ -70,4 +70,4 @@ jobs:
- name: Upload to original repo
uses: EndBug/add-and-commit@v9
with:
add: deb
add: '["deb", "firmware-*/*"]'
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
## Add the Meshtastic Debian Repository

Download the [public key](meshtastic-deb.gpg) and put it in
`/etc/apt/keyrings/meshtastic-deb.gpg`. You can achieve this with:
``` bash

```bash
wget -qO- {{ site.url }}/meshtastic-deb.asc | sudo tee /etc/apt/keyrings/meshtastic-deb.asc >/dev/null
```

Next, create the source in `/etc/apt/sources.list.d/`
``` bash

```bash
echo "deb [arch=all signed-by=/etc/apt/keyrings/meshtastic-deb.asc] {{ site.url }}/deb stable main" | sudo tee /etc/apt/sources.list.d/meshtastic-deb.list >/dev/null
```

If you want to have the latest version of the software, you can replace `stable` with `unstable`.

Then run `apt update && apt install -y meshtasticd`.

0 comments on commit 2889b22

Please sign in to comment.