Repository navigation
Publish to Cloudflare R2 #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Meshtastic OpenWrt Repo | ||
|
|
||
| Home to our APK and OPKG repositories for easily installing Meshtastic on OpenWrt-supported routers. | ||
|
|
||
| If you're looking for the package source code, check out [meshtastic/openwrt](https://github.com/meshtastic/openwrt). | ||
|
|
||
| ## Supported OpenWRT versions | ||
| - `SNAPSHOT` (master branch) | ||
| - `25.12` (stable) | ||
| - `24.10` (old-stable) | ||
| - `23.05` (old-stable) | ||
| - `22.03` (old-stable) | ||
|
|
||
| ## How to use | ||
|
|
||
| This repository is hosted on [Cloudflare R2](https://developers.cloudflare.com/r2/). Repositories use HTTPS protocol and require one of the SSL support packages to be installed on your router. | ||
|
|
||
| ### APK | ||
| Used in the latest stable OpenWrt versions. | ||
|
|
||
| Supported versions: | ||
| - `25.12` | ||
|
|
||
| ##### Add APK repository to your OpenWrt device | ||
|
|
||
| ```sh | ||
| WRT_VER=$( . /etc/openwrt_release; echo "${DISTRIB_RELEASE%%-*}" | cut -d. -f1-2 ) | ||
| echo "https://openwrt.meshtastic.org/openwrt-${WRT_VER}/$(cat /etc/apk/arch)/packages.adb" > /etc/apk/repositories.d/meshtastic.list | ||
| wget https://openwrt.meshtastic.org/meshtastic-apk.pem -O /etc/apk/keys/meshtastic-apk.pem | ||
| apk update | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ### OPKG | ||
| Used in old-stable versions of OpenWrt. | ||
|
|
||
| Supported versions: | ||
| - `24.10` | ||
| - `23.05` | ||
| - `22.03` | ||
|
|
||
| ##### Add OPKG repository to your OpenWrt device | ||
|
|
||
| ```sh | ||
| opkg update | ||
| opkg install wget-ssl | ||
| wget -O /tmp/meshtastic-ipk.pub https://openwrt.meshtastic.org/meshtastic-ipk.pub | ||
| opkg-key add /tmp/meshtastic-ipk.pub && rm /tmp/meshtastic-ipk.pub | ||
| sed -i '/meshtastic/d' /etc/opkg/customfeeds.conf | ||
| ARCH=$( . /etc/openwrt_release; echo "$DISTRIB_ARCH" ) | ||
| WRT_VER=$( . /etc/openwrt_release; echo "${DISTRIB_RELEASE%%-*}" | cut -d. -f1-2 ) | ||
| echo "src/gz meshtastic https://openwrt.meshtastic.org/openwrt-${WRT_VER}/${ARCH}" >> /etc/opkg/customfeeds.conf | ||
| opkg update | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ### Snapshot (master) builds | ||
|
|
||
| For testing only. Please do not file issues about SNAPSHOT builds. | ||
|
|
||
| ##### Add APK repository to your OpenWrt device | ||
|
|
||
| ```sh | ||
| echo "https://openwrt.meshtastic.org/main/$(cat /etc/apk/arch)/packages.adb" > /etc/apk/repositories.d/meshtastic.list | ||
| wget https://openwrt.meshtastic.org/meshtastic-apk.pem -O /etc/apk/keys/meshtastic-apk.pem | ||
| apk update | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 11068
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 4745
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 5591
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 6315
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 4768
🏁 Script executed:
Repository: meshtastic/openwrt
Length of output: 5717
Publish the signing keys used by the feeds. The feed layouts align:
mainand eachopenwrt-*branch become the R2 prefix, artifact names provide the architecture directory, APK usespackages.adb, and OPKG generatesPackages,Packages.gz,Packages.sig, andindex.json. However, the workflow uploads only each artifact's feed directory. It does not uploadmeshtastic-apk.pemormeshtastic-ipk.pubat the R2 root. The documentedwgetcommands therefore cannot obtain the trust keys, andapk updateoropkg updaterejects the signed feed because its public key is unavailable.Publish the public keys at the documented root URLs, or update the README to reference a separately published location. Do not publish the private signing keys.
🧰 Tools
🪛 markdownlint-cli2 (0.23.2)
[warning] 24-24: Heading levels should only increment by one level at a time
Expected: h4; Actual: h5
(MD001, heading-increment)
[warning] 43-43: Heading levels should only increment by one level at a time
Expected: h4; Actual: h5
(MD001, heading-increment)
[warning] 63-63: Heading levels should only increment by one level at a time
Expected: h4; Actual: h5
(MD001, heading-increment)
🤖 Prompt for AI Agents