diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index 37fe9ace..13fa8c01 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -51,7 +51,8 @@ jobs: if: matrix.os == 'windows-latest' working-directory: tnc run: | - pyinstaller -F daemon.py -n daemon + pyinstaller -F daemon.py -n daemon + pyinstaller -F main.py -n tnc #pyinstaller -F --add-binary libcodec2.dll;. --add-binary hamlib/windows/hamlib-4.dll;. --add-binary hamlib/linux/Hamlib.py:. -n tnc main.py - name: LIST ALL FILES diff --git a/.github/workflows/build-tnc.yml b/.github/workflows/build-tnc.yml deleted file mode 100644 index daff5711..00000000 --- a/.github/workflows/build-tnc.yml +++ /dev/null @@ -1,49 +0,0 @@ - -name: Build/TNC -on: push - -jobs: - ubuntu-latest: - runs-on: ubuntu-latest - steps: - - name: Check out Git repository - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - run: | - sudo apt install portaudio19-dev - python -m pip install --upgrade pip - pip3 install pyaudio - pip3 install psutil - pip3 install crcengine - pip3 install pyinstaller - - name: Build with Pyinstaller - working-directory: tnc - run: | - pyinstaller -F daemon.py -n daemon - pyinstaller -F main.py -n tnc - # cd dist - # ls -R - - - name: Release - uses: softprops/action-gh-release@v1 - # if: startsWith(github.ref, 'refs/tags/') - with: - name: Test-Release-Ubuntu - tag_name: v0.1-alpha - prerelease: true - files: | - ./tnc/dist/daemon - ./tnc/dist/tnc - LICENSE - - - #- name: Save build artifacts to Action - # uses: actions/upload-artifact@v2 - # with: - # name: ubuntu-latest - # path: ./tnc/dist/ - # if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index e58271ed..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Build/release - -on: push - -jobs: - - - release: - runs-on: ${{ matrix.os }} - - - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - package_manager: [npm] - - steps: - - name: Check out Git repository - uses: actions/checkout@v2 - - - name: Install Node.js, NPM and Yarn - uses: actions/setup-node@v1 - with: - node-version: 14 - - - name: Install test app dependencies - run: | - cd ${{ matrix.package_root }} - ${{ matrix.package_manager }} install - - - - name: Build/release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - package_root: "./gui/" - # GitHub token, automatically provided to the action - # (No need to define this secret in the repo settings) - github_token: ${{ secrets.github_token }} - - # If the commit is tagged with a version (e.g. "v1.0.0"), - # release the app after building - release: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 7073161c..00000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - working-directory: tnc - run: | - pylint `ls -R|grep .py$|xargs`