Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBytesTheDust committed Jul 27, 2024
0 parents commit 1060072
Show file tree
Hide file tree
Showing 26 changed files with 3,063 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ko_fi: cvamp

30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Start a Bug Report
about: Only for technical bugs and problems.
title: ''
labels: 'bug'
assignees: kevinbytesthedust
---

<!-------------------------------------------------------------------------
Thank you for opening an issue. Please work through these steps first:
1. Follow all troubleshooting step from the wiki
https://github.com/KevinBytesTheDust/cvamp/wiki/Troubleshooting
2. Please ensure that there is not an issue already for the bug.
------------------------------------------------------------------------->

**Please answer the following questions:**
- CVAmp version? [e.g. 0.4.0]
- OS with version? [e.g. Windows 10, Ubuntu 20.04]
- Streaming platform? [e.g. twitch.tv, kick.com, youtube.com]
- Proxies from webshare.io? [yes, no]

**Describe the bug**
A clear and concise description of what the bug is.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Logs**
If applicable, post the part of the cvamp.log, that refers to the problem.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
blank_issues_enabled: true

contact_links:
- name: Start a Feature Request
url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=general
about: |
Ask for features you would like to see.
- name: Ask a Question
url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=q-a
about: |
Receive help from the users and supporters.
- name: Start a General Discussion
url: https://github.com/KevinBytesTheDust/cvamp/discussions/new?category=general
about: |
Discuss and exchange with other users and supporters.
66 changes: 66 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build and Test

on: [pull_request]

env:
PLAYWRIGHT_BROWSERS_PATH: 0

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: [3.11]

runs-on: ${{ matrix.os }}

name: Build ${{ matrix.os }} executable
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Get packages via poetry
run: poetry install

- name: Get CVAmp version number
uses: SebRollen/[email protected]
id: read_toml
with:
file: 'pyproject.toml'
field: 'tool.poetry.version'

- name: Create date and file name env variable
shell: bash
run: |
export today=$(date +'%Y%m%d')
if [ "$RUNNER_OS" == "Windows" ]; then
echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}" >> $GITHUB_ENV
else
echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}_experimental" >> $GITHUB_ENV
fi
- name: Build executable
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico;." --add-binary "pyproject.toml;." --icon cvamp_logo.ico --name ${{env.output_filename}}
else
poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico:." --hidden-import=tkinter --add-binary "pyproject.toml:." --icon cvamp_logo.ico --name ${{env.output_filename}}.bin
fi
mv ./proxy/ ./dist/
- name: Zip executable
uses: vimtor/action-zip@v1
with:
files: dist/
dest: ${{env.output_filename}}.zip

- name: Upload zipped artifact ${{ matrix.os }}
uses: actions/upload-artifact@v1
with:
name: ${{env.output_filename}}
path: ${{env.output_filename}}.zip
90 changes: 90 additions & 0 deletions .github/workflows/build_release_draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Build and Release

on:
push:
tags:
- "v*"

env:
PLAYWRIGHT_BROWSERS_PATH: 0

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-20.04, macos-12, macos-14] #14 is M1
python-version: [3.11]

runs-on: ${{ matrix.os }}

name: Build ${{ matrix.os }} executable
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Get packages via poetry
run: poetry install

- name: Get CVAmp version number
uses: SebRollen/[email protected]
id: read_toml
with:
file: 'pyproject.toml'
field: 'tool.poetry.version'

- name: Create date and file name env variable
shell: bash
run: |
export today=$(date +'%Y%m%d')
if [ "$RUNNER_OS" == "Windows" ]; then
echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}" >> $GITHUB_ENV
else
echo "output_filename=CVAmp${{steps.read_toml.outputs.value}}_${today}_${{runner.os}}-${{runner.arch}}_experimental" >> $GITHUB_ENV
fi
- name: Build executable
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico;." --add-binary "pyproject.toml;." --icon cvamp_logo.ico --name ${{env.output_filename}}
else
poetry run pyinstaller main_gui.py --onefile --add-binary "cvamp_logo.ico:." --hidden-import=tkinter --add-binary "pyproject.toml:." --icon cvamp_logo.ico --name ${{env.output_filename}}.bin
fi
mv ./proxy/ ./dist/
- name: Zip executable
uses: vimtor/action-zip@v1
with:
files: dist/
dest: ${{env.output_filename}}.zip

- name: Upload zipped artifact ${{ matrix.os }}
uses: actions/upload-artifact@v1
with:
name: ${{env.output_filename}}
path: ${{env.output_filename}}.zip

draft_release:
needs: build
runs-on: ubuntu-latest

name: Draft one big release
steps:
- uses: actions/checkout@v3
- name: Download all artifacts
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Create draft release with artifacts
uses: softprops/action-gh-release@v1
with:
name: CVAmp GUI ${{github.ref_name}}
body_path: docs/release_template_text.md
prerelease: false
draft: true
files: artifacts/**/*.zip # glob pattern which will match all zip files in any subdirectory of artifacts.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.idea
venv
__pycache__
development
dist
build
playwright_test.py
main_gui.spec
main.spec
tests
cvamp.log
Loading

0 comments on commit 1060072

Please sign in to comment.