mirror of
https://github.com/Slava-Shchipunov/awg-openwrt.git
synced 2026-03-21 04:15:48 +00:00
Compare commits
8 Commits
tech/updat
...
v25.12.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa17c7a25c | ||
|
|
46f0cba90b | ||
|
|
ad4c3e27c0 | ||
|
|
d64ea7b53e | ||
|
|
e075dcb43f | ||
|
|
449988b8e6 | ||
|
|
9591ffdebe | ||
|
|
3498354348 |
45
.github/workflows/build-module.yml
vendored
45
.github/workflows/build-module.yml
vendored
@@ -12,18 +12,19 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'OpenWRT version (e.g., 24.10.3)'
|
description: 'OpenWRT version (e.g., 24.10.5)'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
targets:
|
targets:
|
||||||
description: 'Targets (comma-separated, e.g., "stm32,ramips")'
|
description: 'Targets (comma-separated, optional)'
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
subtargets:
|
subtargets:
|
||||||
description: 'Subtargets (comma-separated, e.g., "stm32mp1,mt7621")'
|
description: 'Subtargets (comma-separated, optional)'
|
||||||
required: true
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-config:
|
generate-config:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -38,16 +39,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '20.16.0'
|
node-version: '20.16.0'
|
||||||
|
|
||||||
- name: Get OpenWRT version from tag
|
- name: Get OpenWRT version from inputs or tag
|
||||||
id: get_version
|
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||||
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
|
||||||
echo "TARGETS=${{ inputs.targets }}" >> $GITHUB_ENV
|
|
||||||
echo "SUBTARGETS=${{ inputs.subtargets }}" >> $GITHUB_ENV
|
if [ -n "${{ inputs.targets }}" ]; then
|
||||||
elif [ "${{ github.event_name }}" == "workflow_call" ]; then
|
echo "TARGETS=${{ inputs.targets }}" >> $GITHUB_ENV
|
||||||
VERSION="${{ inputs.tag_name }}"
|
fi
|
||||||
echo "VERSION=${VERSION#v}" >> $GITHUB_ENV
|
|
||||||
|
if [ -n "${{ inputs.subtargets }}" ]; then
|
||||||
|
echo "SUBTARGETS=${{ inputs.subtargets }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ "${{ github.event_name }}" = "workflow_call" ]; then
|
||||||
|
echo "VERSION=${{ inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
@@ -174,7 +181,7 @@ jobs:
|
|||||||
make package/amneziawg-tools/compile V=s
|
make package/amneziawg-tools/compile V=s
|
||||||
|
|
||||||
echo "Build completed. Checking for built packages..."
|
echo "Build completed. Checking for built packages..."
|
||||||
find bin/ -name "*.ipk" | grep -E "(amneziawg|luci-proto-amneziawg|luci-i18n-amneziawg)" | head -10
|
find bin/ -name "*.?pk" | grep -E "(amneziawg|luci-proto-amneziawg|luci-i18n-amneziawg)" | head -10
|
||||||
|
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
@@ -185,10 +192,10 @@ jobs:
|
|||||||
postfix="v${{ matrix.build_env.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
postfix="v${{ matrix.build_env.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
||||||
|
|
||||||
# Copy built packages
|
# Copy built packages
|
||||||
find "$SDK_DIR/bin/packages" -name "amneziawg-tools_*.ipk" -exec cp {} awgrelease/amneziawg-tools_${postfix}.ipk \; || echo "amneziawg-tools package not found"
|
find "$SDK_DIR/bin/packages" -name "amneziawg-tools*.?pk" -exec sh -c 'file="$1"; postfix="$2"; ext="${file##*.}"; cp "$file" "awgrelease/amneziawg-tools_${postfix}.${ext}"' _ {} "${postfix}" \; || echo "amneziawg-tools package not found"
|
||||||
find "$SDK_DIR/bin/packages" -name "luci-proto-amneziawg_*.ipk" -exec cp {} awgrelease/luci-proto-amneziawg_${postfix}.ipk \; || echo "luci-proto-amneziawg package not found"
|
find "$SDK_DIR/bin/packages" -name "luci-proto-amneziawg*.?pk" -exec sh -c 'file="$1"; postfix="$2"; ext="${file##*.}"; cp "$file" "awgrelease/luci-proto-amneziawg_${postfix}.${ext}"' _ {} "${postfix}" \; || echo "luci-proto-amneziawg package not found"
|
||||||
find "$SDK_DIR/bin/packages" -name "luci-i18n-amneziawg-ru_*.ipk" -exec cp {} awgrelease/luci-i18n-amneziawg-ru_${postfix}.ipk \; || echo "luci-i18n-amneziawg-ru package not found"
|
find "$SDK_DIR/bin/packages" -name "luci-i18n-amneziawg-ru*.?pk" -exec sh -c 'file="$1"; postfix="$2"; ext="${file##*.}"; cp "$file" "awgrelease/luci-i18n-amneziawg-ru_${postfix}.${ext}"' _ {} "${postfix}" \; || echo "luci-i18n-amneziawg-ru package not found"
|
||||||
find "$SDK_DIR/bin/targets" -name "kmod-amneziawg_*.ipk" -exec cp {} awgrelease/kmod-amneziawg_${postfix}.ipk \; || echo "kmod-amneziawg package not found"
|
find "$SDK_DIR/bin/targets" -name "kmod-amneziawg*.?pk" -exec sh -c 'file="$1"; postfix="$2"; ext="${file##*.}"; cp "$file" "awgrelease/kmod-amneziawg_${postfix}.${ext}"' _ {} "${postfix}" \; || echo "kmod-amneziawg package not found"
|
||||||
|
|
||||||
echo "Built packages:"
|
echo "Built packages:"
|
||||||
ls -la awgrelease/
|
ls -la awgrelease/
|
||||||
@@ -196,5 +203,5 @@ jobs:
|
|||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: awgrelease/*.ipk
|
files: awgrelease/*.?pk
|
||||||
tag_name: v${{ matrix.build_env.tag }}
|
tag_name: v${{ matrix.build_env.tag }}
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -23,9 +23,9 @@ sh <(wget -O - https://raw.githubusercontent.com/Slava-Shchipunov/awg-openwrt/re
|
|||||||
5) [23.05.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.4)
|
5) [23.05.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.4)
|
||||||
6) [23.05.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.5)
|
6) [23.05.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.5)
|
||||||
7) AWG-2.0 [23.05.6](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.6)
|
7) AWG-2.0 [23.05.6](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.6)
|
||||||
8) [24.10.0](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.0)
|
8) [24.10.0](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.0) ([AWG-2.0 для 24.10.0](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.0) из форка, если кому-то понадобится)
|
||||||
9) [24.10.1](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.1)
|
9) [24.10.1](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.1) ([AWG-2.0 для 24.10.1](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.1) из форка)
|
||||||
10) [24.10.2](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.2)
|
10) [24.10.2](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.2) ([AWG-2.0 для 24.10.2](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.2) из форка)
|
||||||
11) AWG-2.0 [24.10.3](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.3)
|
11) AWG-2.0 [24.10.3](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.3)
|
||||||
12) AWG-2.0 [24.10.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.4)
|
12) AWG-2.0 [24.10.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.4)
|
||||||
13) AWG-2.0 [24.10.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.5)
|
13) AWG-2.0 [24.10.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.5)
|
||||||
@@ -91,9 +91,9 @@ At the moment I have collected packages for all devices for OpenWRT versions:
|
|||||||
5) [23.05.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.4)
|
5) [23.05.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.4)
|
||||||
6) [23.05.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.5)
|
6) [23.05.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.5)
|
||||||
7) AWG-2.0 [23.05.6](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.6)
|
7) AWG-2.0 [23.05.6](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v23.05.6)
|
||||||
8) [24.10.0](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.0)
|
8) [24.10.0](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.0) ([AWG-2.0 for 24.10.0](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.0) from fork)
|
||||||
9) [24.10.1](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.1)
|
9) [24.10.1](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.1) ([AWG-2.0 for 24.10.1](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.1) from fork)
|
||||||
10) [24.10.2](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.2)
|
10) [24.10.2](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.2) ([AWG-2.0 for 24.10.2](https://github.com/yanjore/awg-openwrt/releases/tag/v24.10.2) from fork)
|
||||||
11) AWG-2.0 [24.10.3](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.3)
|
11) AWG-2.0 [24.10.3](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.3)
|
||||||
12) AWG-2.0 [24.10.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.4)
|
12) AWG-2.0 [24.10.4](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.4)
|
||||||
13) AWG-2.0 [24.10.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.5)
|
13) AWG-2.0 [24.10.5](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.5)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=amneziawg-tools
|
PKG_NAME:=amneziawg-tools
|
||||||
PKG_VERSION:=1.0.20250903
|
PKG_VERSION:=1.0.20260223
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=kmod-amneziawg
|
PKG_NAME:=kmod-amneziawg
|
||||||
PKG_VERSION:=1.0.20251104
|
PKG_VERSION:=1.0.20260210
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ function generateDescription(name, texts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildSVGQRCode(data, code) {
|
function buildSVGQRCode(data, code) {
|
||||||
// pixel size larger than 4 clips right and bottom edges of complex configs
|
// pixel size 3 for mobile browser
|
||||||
const options = {
|
const options = {
|
||||||
pixelSize: 4,
|
pixelSize: 3,
|
||||||
whiteColor: 'white',
|
whiteColor: 'white',
|
||||||
blackColor: 'black'
|
blackColor: 'black'
|
||||||
};
|
};
|
||||||
@@ -934,7 +934,7 @@ return network.registerProtocol('amneziawg', {
|
|||||||
}, [
|
}, [
|
||||||
E('div', {
|
E('div', {
|
||||||
'class': 'qr-code',
|
'class': 'qr-code',
|
||||||
'style': 'width:320px;flex:0 1 320px;text-align:center'
|
'style': 'text-align:center'
|
||||||
}, [
|
}, [
|
||||||
E('em', { 'class': 'spinning' }, [ _('Generating QR code…') ])
|
E('em', { 'class': 'spinning' }, [ _('Generating QR code…') ])
|
||||||
]),
|
]),
|
||||||
|
|||||||
Reference in New Issue
Block a user