Skip to content

Commit

Permalink
fix Package name
Browse files Browse the repository at this point in the history
  • Loading branch information
MortezaBashsiz committed Sep 13, 2024
1 parent 4bdb5e8 commit 0dfac49
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 20 deletions.
50 changes: 39 additions & 11 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
name: build debian
name: Build Debian Package

on:
push:
branches: [ "morteza/debian" ]
# paths:
# - 'core/**'
branches:
- morteza/debian
pull_request:
branches:
- morteza/debian

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2

- name: build-deb-action
uses: jiro4989/[email protected]
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev build-essential lintian fakeroot devscripts cmake libssl-dev libboost-all-dev libyaml-cpp-dev
- name: Build the package
run: |
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j$(nproc)
cd ..
mkdir -p nipovpn/usr/bin/
cp build/core/nipovpn nipovpn/usr/bin/nipovpn
dpkg-deb --build nipovpn/ build/nipovpn.deb
# - name: Lint the nipovpn
# run: |
# lintian build/nipovpn.deb

- name: Upload the Debian nipovpn as an artifact
uses: actions/upload-artifact@v3
with:
package_root: ./nipovpn

name: deb-package
path: build/nipovpn.deb

- name: Show nipovpn information
run: |
dpkg -I build/nipovpn.deb
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Create the log directory and log file

Run it
```bash
sudo build/core/nipovpn_core server nipovpn/etc/nipovpn/config.yaml
sudo build/core/nipovpn server nipovpn/etc/nipovpn/config.yaml
2024-08-02_15:30:07 [INFO] Config initialized in server mode
2024-08-02_15:30:07 [INFO]
Config :
Expand Down
2 changes: 1 addition & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(CORE_TARGET nipovpn_core)
set(CORE_TARGET nipovpn)
set(CMAKE_CXX_STANDARD 20)

set(CORE_TARGET_HEADERS
Expand Down
14 changes: 7 additions & 7 deletions nipovpn/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nipovpn
Version: 0.1
Maintainer: Morteza Bashsiz
Architecture: amd64
Description: Powerfull and Secure http/s Proxy
Depends: libyaml-cpp0.8
Homepage: https://github.com/MortezaBashsiz/nipovpn
Package : nipovpn
Version : 0.1
Maintainer : Morteza Bashsiz
Architecture : amd64
Description : Powerfull and Secure http/s Proxy
Depends : libyaml-cpp0.8
Homepage : https://github.com/MortezaBashsiz/nipovpn

0 comments on commit 0dfac49

Please sign in to comment.