Skip to content

Commit a909abd

Browse files
committed
Merge branch 'v4'
2 parents 4e7fe33 + cb21a8a commit a909abd

File tree

264 files changed

+23471
-22028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+23471
-22028
lines changed

.fpm_openwrt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
-s dir
2+
--name hiddify-core
3+
--category net
4+
--license GPL-3.0-or-later
5+
--description "The universal proxy platform."
6+
--url "https://hiddify.com/"
7+
--maintainer "hiddify <wrt@hiddify.com>"
8+
--no-deb-generate-changes
9+
10+
--config-files /etc/config/hiddify
11+
--config-files /etc/hiddify/config.json
12+
13+
--depends ca-bundle
14+
--depends kmod-inet-diag
15+
--depends kmod-tun
16+
--depends firewall4
17+
--depends kmod-nft-queue
18+
19+
--before-remove release/config/openwrt.prerm
20+
21+
release/config/config.json=/etc/hiddify/config.json
22+
23+
release/config/openwrt.conf=/etc/config/hiddify
24+
release/config/openwrt.init=/etc/init.d/hiddify
25+
release/config/openwrt.keep=/lib/upgrade/keep.d/hiddify
26+
27+
LICENSE.md=/usr/share/licenses/hiddify-core/LICENSE.md

.fpm_systemd

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-s dir
2+
--name hiddify-core
3+
--category net
4+
--license GPL-3.0-or-later
5+
--description "The universal proxy platform."
6+
--url "https://hiddify.com/"
7+
--maintainer "hiddify <core@hiddify.com>"
8+
--deb-field "Bug: https://github.com/hiddify/hiddify-core/issues"
9+
--no-deb-generate-changes
10+
--config-files /etc/hiddify-core/config.json
11+
--after-install release/config/hiddify-core.postinst
12+
13+
release/config/config.json=/etc/hiddify-core/config.json
14+
15+
release/config/hiddify-core.service=/usr/lib/systemd/system/hiddify-core.service
16+
release/config/hiddify-core@.service=/usr/lib/systemd/system/hiddify-core@.service
17+
release/config/hiddify-core.sysusers=/usr/lib/sysusers.d/hiddify-core.conf
18+
release/config/hiddify-core.rules=usr/share/polkit-1/rules.d/hiddify-core.rules
19+
release/config/hiddify-core-split-dns.xml=/usr/share/dbus-1/system.d/hiddify-core-split-dns.conf
20+
21+
LICENSE.md=/usr/share/licenses/hiddify-core/LICENSE.md

.gitchangelog.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tag_filter_regexp = r'^v\d+\.\d+\.\d+$'

.github/change_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ echo "version: ${VERSION_STR}+${BUILD_NUMBER}"
1414
SED -e "s|<key>CFBundleVersion</key>\s*<string>[^<]*</string>|<key>CFBundleVersion</key><string>${VERSION_STR}</string>|" Info.plist
1515
SED -e "s|<key>CFBundleShortVersionString</key>\s*<string>[^<]*</string>|<key>CFBundleShortVersionString</key><string>${VERSION_STR}</string>|" Info.plist
1616
SED "s|ENV VERSION=.*|ENV VERSION=v${TAG}|g" docker/Dockerfile
17-
git add Info.plist docker/Dockerfile
17+
git add Info.plist platform/docker/Dockerfile
1818
git commit -m "release: version ${TAG}"
1919
echo "creating git tag : v${TAG}"
2020
git push
2121
git tag v${TAG}
22-
git push -u origin HEAD --tags
22+
git push --tags
2323
echo "Github Actions will detect the new tag and release the new version."

.github/workflows/build.yml

Lines changed: 482 additions & 35 deletions
Large diffs are not rendered by default.

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ on:
1010
branches:
1111
- main
1212
- dev
13-
- android-fix-action-bug
13+
- v3
14+
- v4
1415
paths-ignore:
1516
- '**.md'
1617
- 'docs/**'

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
*.dylib
2+
*.dll
3+
*.so
4+
5+
*cronet*
16
/bin/*
27
!/bin/.gitkeep
38
.build
49
.idea
510
cert
11+
data
612
**/*.log
713
.DS_Store
814

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "hiddify-sing-box"]
2+
path = hiddify-sing-box
3+
url = https://github.com/hiddify/hiddify-sing-box
4+
[submodule "ray2sing"]
5+
path = ray2sing
6+
url = git@github.com:hiddify/ray2sing.git

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ go version go1.21.1 darwin/arm64
1212

1313
> if you're not interested in building/contributing to the Go code, you can skip this section
1414
15-
The Go code for Hiddify can be found in the `libcore` folder, as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) and in [core repository](https://github.com/hiddify/hiddify-next-core). The entrypoints for the desktop version are available in the [`libcore/custom`](https://github.com/hiddify/hiddify-next-core/tree/main/custom) folder and for the mobile version they can be found in the [`libcore/mobile`](https://github.com/hiddify/hiddify-next-core/tree/main/mobile) folder.
15+
The Go code for Hiddify can be found in the `hiddify-core` folder, as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) and in [core repository](https://github.com/hiddify/hiddify-next-core). The entrypoints for the desktop version are available in the [`hiddify-core/custom`](https://github.com/hiddify/hiddify-next-core/tree/main/custom) folder and for the mobile version they can be found in the [`hiddify-core/mobile`](https://github.com/hiddify/hiddify-next-core/tree/main/mobile) folder.
1616

17-
For the desktop version, we have to compile the Go code into a C shared library. We are providing a Makefile to generate the C shared libraries for all operating systems. The following Make commands will build libcore and copy the resulting output in [`libcore/bin`](https://github.com/hiddify/hiddify-next-core/tree/main/bin):
17+
For the desktop version, we have to compile the Go code into a C shared library. We are providing a Makefile to generate the C shared libraries for all operating systems. The following Make commands will build hiddify-core and copy the resulting output in [`hiddify-core/bin`](https://github.com/hiddify/hiddify-next-core/tree/main/bin):
1818

1919
- `make windows-amd64`
2020
- `make linux-amd64`
2121
- `make macos-universal`
2222

23-
For the mobile version, we are using the [`gomobile`](https://github.com/golang/go/wiki/Mobile) tools. The following Make commands will build libcore for Android and iOS and copy the resulting output in [`libcore/bin`](https://github.com/hiddify/hiddify-next-core/tree/main/bin):
23+
For the mobile version, we are using the [`gomobile`](https://github.com/golang/go/wiki/Mobile) tools. The following Make commands will build hiddify-core for Android and iOS and copy the resulting output in [`hiddify-core/bin`](https://github.com/hiddify/hiddify-next-core/tree/main/bin):
2424

2525
- `make android`
2626
- `make ios`

0 commit comments

Comments
 (0)