-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved to Python 3.9 - Better type hinting, fixed tons of logic bugs - Move to PyQt6 - Added 'Focus Mode' (shortcut : `Ctrl+F`) - Updated & fixed dependencies from `requirements.txt` Co-authored-by: Piotr Kasprzyk <ciri@ciri.pl> Co-authored-by: thelumberjhack <5294889+thelumberjhack@users.noreply.github.com>
- Loading branch information
1 parent
44427a8
commit 80c13f5
Showing
45 changed files
with
2,663 additions
and
1,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.asm] | ||
indent_style = space | ||
indent_size = 8 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: "Continuous Delivery" | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
env: | ||
NAME: cemu | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
jobs: | ||
build: | ||
name: "Building cemu" | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
python-version: [3.9, ] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: rlespinasse/github-slug-action@v3.x | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: "Install Pre-requisite for Linux build" | ||
if: startsWith(matrix.os, 'ubuntu') | ||
shell: bash | ||
run: | | ||
sudo apt update | ||
sudo apt upgrade -y | ||
sudo apt install -y build-essential python3-dev python3-pip python3-wheel python3-setuptools | ||
- name: "Install Pre-requisite for Windows build" | ||
if: startsWith(matrix.os, 'windows') | ||
shell: pwsh | ||
run: | | ||
echo todo | ||
- name: Build artifact | ||
shell: bash | ||
run: | | ||
mkdir build | ||
mkdir build/bin | ||
python --version | ||
python -m pip --version | ||
python -m pip install --upgrade pip setuptools wheel | ||
python -m pip install --user --upgrade -r requirements.txt | ||
python -m pip install --user --upgrade . | ||
- name: "Post build actions for Windows" | ||
if: startsWith(matrix.os, 'windows') | ||
shell: pwsh | ||
run: | | ||
Copy-Item %APPDATA%\Python\Python*\Scripts\cemu.exe build\bin\ | ||
- name: "Post build actions for Linux/MacOS" | ||
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos') | ||
shell: bash | ||
run: | | ||
cp -v ~/.local/bin/cemu build/bin/ | ||
- name: Publish artifact | ||
id: publish_artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.NAME }}_${{ matrix.os }}_py${{ matrix.python }}_${{ env.GITHUB_REF_SLUG }}_${{ env.GITHUB_SHA_SHORT }} | ||
path: build/ | ||
|
||
- name: Failure notification | ||
if: failure() | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
nodetail: true | ||
title: Failed to build | ||
description: | | ||
``` | ||
${{ failure.message }} | ||
``` | ||
color: 0xff0000 | ||
username: ${{ github.actor }} via GithubBot | ||
avatar_url: ${{ github.actor.avatar_url }} | ||
|
||
- name: Success notification | ||
if: success() | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
nodetail: true | ||
title: Successful Build | ||
description: | | ||
``` | ||
${{ success.message }} | ||
``` | ||
color: 0x00ff00 | ||
username: ${{ github.actor }} via GithubBot | ||
avatar_url: ${{ github.actor.avatar_url }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: "Discord Notification" | ||
on: [push, pull_request, issues] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Push Notification | ||
if: github.event_name == 'push' && github.repository_owner == 'hugsy' | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
nodetail: true | ||
title: "[${{ github.repository }}] ${{ github.actor }} pushed to `${{ github.ref }}`" | ||
description: | | ||
**Commit delta**: `${{ github.event.before }}` → `${{ github.event.after }}` | ||
--- | ||
**Changes**: ${{ github.event.compare }} | ||
--- | ||
**Commits**: | ||
● ${{ join(github.event.commits.*.message, ' | ||
● ') }} | ||
color: 0x0000ff | ||
username: ${{ github.actor }} on CEMU | ||
avatar_url: https://snipstock.com/assets/cdn/png/new/23ee1d96fccd86fd70f6d8e9bd67d81b.png | ||
|
||
- name: Pull Request Notification | ||
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.repository_owner == 'hugsy' | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
nodetail: true | ||
title: "[${{ github.repository }}] ${{ github.actor }} created a new Pull Request (`#${{ github.event.pull_request.number }}`)" | ||
description: | | ||
**${{ github.event.pull_request.title }}** | ||
${{ github.event.pull_request.body }} | ||
--- | ||
Link: ${{ github.event.pull_request.html_url }} | ||
color: 0xff0000 | ||
username: ${{ github.actor }} on CEMU | ||
avatar_url: https://snipstock.com/assets/cdn/png/new/23ee1d96fccd86fd70f6d8e9bd67d81b.png | ||
|
||
- name: Issue Notification | ||
if: github.event_name == 'issues' && github.event.action == 'opened' && github.repository_owner == 'hugsy' | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
nodetail: true | ||
title: "[${{ github.repository }}] ${{ github.actor }} created a new Issue (`#${{ github.event.issue.number }}`)" | ||
description: | | ||
**${{ github.event.issue.title }}** | ||
${{ github.event.issue.body }} | ||
--- | ||
Link: ${{ github.event.issue.html_url }} | ||
color: 0x00ff00 | ||
username: ${{ github.actor }} on CEMU | ||
avatar_url: https://snipstock.com/assets/cdn/png/new/23ee1d96fccd86fd70f6d8e9bd67d81b.png |
Oops, something went wrong.