Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
480 commits
Select commit Hold shift + click to select a range
4396e9f
reverting back regression
pyTranscriber Dec 22, 2022
f34982a
norm path
pyTranscriber Dec 22, 2022
64d4afb
Simplified version with PurePath
pyTranscriber Dec 22, 2022
498bbb7
Simplified version with purepath
pyTranscriber Dec 22, 2022
14fb4a6
Windows nuitka compile script
pyTranscriber Dec 22, 2022
037a962
Requirements updated
pyTranscriber Dec 22, 2022
cf966d3
Upgraded win setup generator
pyTranscriber Dec 22, 2022
59d4dfd
Merge branch 'dev-1.9'
pyTranscriber Dec 22, 2022
ed46233
Removed debug info
pyTranscriber Dec 23, 2022
a5de403
1.9 release notes added
raryelcostasouza Dec 30, 2022
20a72b3
Moved banner up
raryelcostasouza Dec 30, 2022
f737e21
release statistics
raryelcostasouza Jan 2, 2023
c07b0bd
Additional scripts for standalone package
pyTranscriber Jan 30, 2023
b431070
Merge remote-tracking branch 'origin/master'
pyTranscriber Jan 30, 2023
ef1355f
contributors
raryelcostasouza Feb 10, 2023
d32ddd0
Update README.md
raryelcostasouza Feb 10, 2023
f391a22
Merge remote-tracking branch 'origin/master'
pyTranscriber Mar 2, 2023
4d67aa8
Localize the translation of Traditional Chinese.
nyraa Apr 9, 2023
2f294fb
Moved qdialog methods to separate static class
pyTranscriber Jan 23, 2024
ef04271
fix bug return conn instead of cursor
pyTranscriber Mar 9, 2023
8f98763
package files
pyTranscriber Jan 23, 2024
6cbfb64
Title for error message box
pyTranscriber Jan 23, 2024
a99daa1
Parametrized DB functions
pyTranscriber Jan 23, 2024
2a25f6c
Load/save last language implementation
pyTranscriber Jan 23, 2024
7bb546d
gui -> window_main
pyTranscriber Jan 23, 2024
282d363
Moved window_main to separate folder
pyTranscriber Jan 23, 2024
aba14e4
renamed proxy window files
pyTranscriber Mar 10, 2023
6218f55
proxy gui package
pyTranscriber Mar 10, 2023
1395400
Update language selector when load language from db
pyTranscriber Aug 10, 2023
131907e
gui files
pyTranscriber Jan 23, 2024
0dd344b
exception catching on main
pyTranscriber Aug 10, 2023
a4e50b1
proxy controller
pyTranscriber Aug 10, 2023
f01c16e
move proxy data to ctr_proxy
pyTranscriber Aug 10, 2023
0eae41e
proxy settings load from db
pyTranscriber Jan 23, 2024
04a38fd
proxy integration to main ui
pyTranscriber Aug 10, 2023
7eff381
proxy related methods to check connectivity
pyTranscriber Jan 23, 2024
ff62624
deleted old monolithical ui files
pyTranscriber Aug 10, 2023
f84584b
radio button to select engine between Google Speech and openAI Whisper
pyTranscriber Aug 10, 2023
2a28976
control classes for whisper processing
pyTranscriber Jan 23, 2024
e9f4394
UI Changes to include Whisper switch
pyTranscriber Jan 23, 2024
4e9bc3c
fix missing parenthesis
pyTranscriber Jan 23, 2024
77247e6
control classes for engine switch
pyTranscriber Jan 23, 2024
5a2b9ac
pipfile.lock ignore
pyTranscriber Jan 23, 2024
e0240de
gitignore update
pyTranscriber Jan 23, 2024
59af501
proxy window
pyTranscriber Aug 10, 2023
19a553a
removed unnecessary rows
pyTranscriber Jan 23, 2024
29931af
Fix internet connection test
pyTranscriber Jan 23, 2024
4d1b5c6
Removed unnecessary GUI elements
pyTranscriber Jan 25, 2024
79e3dbd
Removed unnecessary GUI elements
pyTranscriber Jan 25, 2024
35e389b
Constants classes for Google speech and Whisper with languages supported
pyTranscriber Jan 25, 2024
2017a23
Language option passed as parameter on Whisper
pyTranscriber Jan 25, 2024
3817edb
Whisper Model Options on UI
pyTranscriber Jan 26, 2024
eb4117c
Whisper Language Options and Models
pyTranscriber Jan 26, 2024
858d024
Update README.md
raryelcostasouza Mar 22, 2024
73e7dfa
lightning btc address
raryelcostasouza Mar 22, 2024
c340719
Update README.md
raryelcostasouza Mar 22, 2024
4d37b50
Delete doc/bch.png
raryelcostasouza Mar 22, 2024
f3ebdf6
Delete doc/doge.png
raryelcostasouza Mar 22, 2024
39350a9
Delete doc/eth.png
raryelcostasouza Mar 22, 2024
6761f44
Delete doc/ltc.png
raryelcostasouza Mar 22, 2024
aa00a1f
Delete doc/btc.png
raryelcostasouza Mar 22, 2024
b75441a
Delete doc/bnb.png
raryelcostasouza Mar 22, 2024
8fc9d65
Update README.md
raryelcostasouza Mar 22, 2024
0627be0
Update README.md
raryelcostasouza Mar 22, 2024
693e606
Update README.md
raryelcostasouza Mar 22, 2024
cafde76
Delete doc/lightning.jpeg
raryelcostasouza Mar 22, 2024
e55bd0d
corrected lightning QR code
raryelcostasouza Mar 22, 2024
b4fc12d
Update README.md
raryelcostasouza Mar 22, 2024
1f13bda
update TC translate
nyraa Nov 18, 2024
148bcd4
Workable patch for whisper silent failures in frozen app
pyTranscriber Mar 4, 2025
2fa8633
Remove debug info and unneeded imports
pyTranscriber Mar 4, 2025
039c896
Remove debug info and unneeded imports
pyTranscriber Mar 4, 2025
ee9c28d
bump release version info
pyTranscriber Mar 4, 2025
5f99c1e
bump release version info
pyTranscriber Mar 4, 2025
ca4b2b5
purepath adjustments
pyTranscriber Mar 4, 2025
6aa0d81
Force whisper models to be in user home folder for pytranscriber, sep…
pyTranscriber Mar 4, 2025
3961ee7
Default title for error messages
pyTranscriber Mar 4, 2025
001552c
whisper and pyinstaller as deps
pyTranscriber Mar 4, 2025
2bb691a
patch freeze scripts
pyTranscriber Mar 4, 2025
ab8a2f9
updated gitignore
pyTranscriber Mar 4, 2025
e2259a8
Create win-nuitka.yml
raryelcostasouza Mar 5, 2025
fdbb42b
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
25b08f1
Merge pull request #45 from raryelcostasouza/raryelcostasouza-patch-1
raryelcostasouza Mar 5, 2025
eb7e17b
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
77d436a
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
cb05a14
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
c8f4f1e
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
2499bb3
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
24a674b
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
3a14dea
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
08c2ea3
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
131e3a0
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
0bae697
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
1fab200
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
baf0828
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
3cc6019
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
58f1325
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
4d59016
Update README.md
raryelcostasouza Mar 5, 2025
582822d
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
192ce6c
Update README.md
raryelcostasouza Mar 5, 2025
fd10f69
pytranscriber.sqlite base config/db
pyTranscriber Mar 5, 2025
7c7319f
Merge remote-tracking branch 'origin/dev-2.0' into dev-2.0
pyTranscriber Mar 5, 2025
6a5cc00
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
68bdf55
Create win-pyinstaller.yml
raryelcostasouza Mar 5, 2025
49fd3e7
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
4e9ce67
Create win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
5f087b1
Merge pull request #46 from raryelcostasouza/raryelcostasouza-patch-2
raryelcostasouza Mar 5, 2025
2927dae
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
06009ea
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
ca06fec
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
1716a34
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
22d38bc
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
0dbb36b
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
0998a67
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
a00db49
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 5, 2025
e19ce3e
Update win-nuitka.yml
raryelcostasouza Mar 5, 2025
61e5a9b
Create linux-pyinstaller.yml
raryelcostasouza Mar 5, 2025
82af6f5
Merge pull request #47 from raryelcostasouza/raryelcostasouza-patch-3
raryelcostasouza Mar 5, 2025
66949a6
Create mac-pyinstaller.yml
raryelcostasouza Mar 5, 2025
3e67e0c
Merge pull request #48 from raryelcostasouza/raryelcostasouza-patch-4
raryelcostasouza Mar 5, 2025
e3a0c44
Update linux-pyinstaller.yml
raryelcostasouza Mar 5, 2025
97ba2ec
Update mac-pyinstaller.yml
raryelcostasouza Mar 6, 2025
1f2a48e
Update mac-pyinstaller.yml
raryelcostasouza Mar 6, 2025
9e300d3
Update mac-pyinstaller.yml
raryelcostasouza Mar 6, 2025
3e4b280
Update mac-pyinstaller.yml
raryelcostasouza Mar 6, 2025
99e3feb
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 6, 2025
6793bc5
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 6, 2025
100d1b9
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 6, 2025
ebd3412
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 6, 2025
385080c
moved deployment scripts
pyTranscriber Mar 6, 2025
f8c91e7
moved deployment scripts
pyTranscriber Mar 6, 2025
38bcc07
bump deps to fix vulnerabilities
pyTranscriber Mar 6, 2025
cc9bbd9
moved deployments script
pyTranscriber Mar 6, 2025
1f3d0f4
Adjusted timeouts and errors code for method to test connectivity
pyTranscriber Mar 8, 2025
3a3035a
Error catching of autosub run on parent thread_exec_autosub level
pyTranscriber Mar 8, 2025
9c132bf
Restore portuguese translation
pyTranscriber Mar 8, 2025
ca7dd51
reset default config on db
pyTranscriber Mar 8, 2025
978033f
Fixed about pyTranscriber button disappearing on English translation
pyTranscriber Mar 8, 2025
685b979
Removed unneeded deps and added platformdirs to pickup desktop folder…
pyTranscriber Mar 8, 2025
01ba376
Added GPL copyright notice
pyTranscriber Mar 8, 2025
dba2047
Create linux-nuitka.yml
raryelcostasouza Mar 8, 2025
e1d7b12
Merge pull request #49 from raryelcostasouza/raryelcostasouza-patch-5
raryelcostasouza Mar 8, 2025
f3ec8bc
Update linux-nuitka.yml
raryelcostasouza Mar 8, 2025
51ae635
Update mac-pyinstaller.yml
raryelcostasouza Mar 8, 2025
c012d9e
Update mac-pyinstaller.yml
raryelcostasouza Mar 8, 2025
2ba9629
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 8, 2025
47c9dfc
add path root on pyinstaller command
raryelcostasouza Mar 8, 2025
3a6049f
Update win-pyinstaller-dev2.yml
raryelcostasouza Mar 8, 2025
caae526
Update mac-pyinstaller.yml
raryelcostasouza Mar 8, 2025
6dee783
Version number added as suffix from latest tag
raryelcostasouza Mar 8, 2025
2a837d7
Fix download to use version variable
raryelcostasouza Mar 8, 2025
02997f3
download filename variable
raryelcostasouza Mar 8, 2025
6b93d9d
fix download filename
raryelcostasouza Mar 8, 2025
90f153e
download pull latest tag
raryelcostasouza Mar 8, 2025
772c217
debug steps export version variable
raryelcostasouza Mar 8, 2025
3eeb31d
Update mac-pyinstaller.yml
raryelcostasouza Mar 8, 2025
0b4cc57
Merge pull request #35 from nyraa/master
raryelcostasouza Mar 8, 2025
a7b1f5e
Remove output variables from build
raryelcostasouza Mar 8, 2025
7b09ef3
Missing )
raryelcostasouza Mar 8, 2025
eabdc20
Added version number at filename for Linux pyinstaller
raryelcostasouza Mar 8, 2025
f2c788b
version number suffix on files for nuitka pipeline
raryelcostasouza Mar 8, 2025
4e497e2
fix upload for linux pyinstaller
raryelcostasouza Mar 8, 2025
c24ed65
version suffix on win nuitka
raryelcostasouza Mar 8, 2025
d232ab2
add suffix version output
raryelcostasouza Mar 8, 2025
2e61cd1
fetch all tags added
raryelcostasouza Mar 8, 2025
ae250cd
fetch all tags added
raryelcostasouza Mar 8, 2025
89656cb
fetch all tags added
raryelcostasouza Mar 8, 2025
b1b0361
fetch all tags added
raryelcostasouza Mar 8, 2025
e744e0d
fix tag pull
raryelcostasouza Mar 8, 2025
50fcfa6
action to retrieve tag
raryelcostasouza Mar 8, 2025
9bab469
powershell git tag
raryelcostasouza Mar 8, 2025
f762b11
removed echo
raryelcostasouza Mar 8, 2025
eb2379b
fix filenames and git tag pull
raryelcostasouza Mar 8, 2025
86c1529
correct version string on output files
raryelcostasouza Mar 9, 2025
5bc6fd2
${env:VERSION}
raryelcostasouza Mar 9, 2025
291dfee
fix syntax variables {{}}
raryelcostasouza Mar 9, 2025
4ff74b5
fix sintax {{}}
raryelcostasouza Mar 9, 2025
9f7e68c
fix sintax : .
raryelcostasouza Mar 9, 2025
ad857a2
fix sintax : .
raryelcostasouza Mar 9, 2025
ecf70f2
fix powershell / yaml syntax
raryelcostasouza Mar 9, 2025
d107a64
mirror fixes for win pyinstaller on yaml/powershell syntax
raryelcostasouza Mar 9, 2025
0ac8b80
move to ubuntu 20.04
raryelcostasouza Mar 9, 2025
2be4286
move to ubuntu 20.04
raryelcostasouza Mar 9, 2025
e39bae4
fix nuitka linux output name
raryelcostasouza Mar 9, 2025
770aa31
license comment
pyTranscriber May 24, 2025
ed3b228
fix comment license
pyTranscriber May 24, 2025
83669fa
fix compliance with srt syntax on whisper srt export
pyTranscriber May 24, 2025
3bde1a3
fix milisecond issue crashing srt syntax
pyTranscriber May 24, 2025
f66dc11
added pt br translation to tracker
pyTranscriber May 24, 2025
b382b55
updated version number release 2.0
pyTranscriber May 24, 2025
6d35da1
Tokenizer override to make it compatible with cantonese
pyTranscriber May 24, 2025
f7de9db
override tokenizer for cantonese compatibility on whisper engine
pyTranscriber May 24, 2025
d41d6d7
remove override classes for tokenizer
pyTranscriber May 25, 2025
bba31ba
remove override tokenizer
pyTranscriber May 25, 2025
bcd2891
commit vanilla whisper
pyTranscriber May 25, 2025
78393e5
override on tokenizer to fix issue with last language from dictionary…
pyTranscriber May 25, 2025
a4bb75c
final fixes mac freeze local script
pyTranscriber May 25, 2025
f01d959
keep chinese translation from contributed PR
pyTranscriber May 25, 2025
7452241
Additional scripts for standalone package
pyTranscriber Jan 30, 2023
de03d2e
removing pt br translation to fix git merge
pyTranscriber May 25, 2025
c0afa9e
merge v2.0
pyTranscriber May 25, 2025
3777381
Update mac-pyinstaller.yml
raryelcostasouza May 25, 2025
aea56ec
Update win-nuitka.yml
raryelcostasouza May 25, 2025
c0c84e4
Update win-pyinstaller-dev2.yml
raryelcostasouza May 25, 2025
ff32151
Update win-pyinstaller.yml
raryelcostasouza May 25, 2025
e464575
Update linux-pyinstaller.yml
raryelcostasouza May 25, 2025
2d0aab1
Update linux-nuitka.yml
raryelcostasouza May 25, 2025
99405da
Update linux-pyinstaller.yml
raryelcostasouza May 25, 2025
a7892f8
Update linux-nuitka.yml
raryelcostasouza May 25, 2025
ab78300
Update mac-pyinstaller.yml
raryelcostasouza May 25, 2025
c1ef253
remove old unused build script for windows
pyTranscriber May 25, 2025
b23d731
fix inclusion of whisper assets path on nuitka compilation
raryelcostasouza May 26, 2025
221f16d
fix reference $assetsPath
raryelcostasouza May 26, 2025
63d2d5e
Add -macOS- suffix to filename
raryelcostasouza Jul 6, 2025
02d72f6
Added suffix -win- to output
raryelcostasouza Jul 6, 2025
d09c656
install xcb dependencies before
raryelcostasouza Jul 6, 2025
60abeac
Add suffix -linux-
raryelcostasouza Jul 6, 2025
c747c4e
-win- suffix for win pyinstaller script
raryelcostasouza Jul 6, 2025
bdf0fec
fix fmpeg dependency
raryelcostasouza Jul 6, 2025
cdcb4a7
fix ffmpeg dependency
raryelcostasouza Jul 6, 2025
92fae77
Revert ffmpeg version to 3.1
raryelcostasouza Jul 6, 2025
b96f209
Revert ffmpeg to 3.1
raryelcostasouza Jul 6, 2025
fd6f855
Upgrade torch to CUDA support versions
raryelcostasouza Jul 6, 2025
7143f5e
Fix coda-enabled PyTorch install
raryelcostasouza Jul 6, 2025
b279006
fix version pinned torch
raryelcostasouza Jul 6, 2025
ca25312
ffmpeg install via apt
raryelcostasouza Jul 6, 2025
e509b6a
linux release added
raryelcostasouza Jul 8, 2025
cd9a654
Added upx compress. Removed double zipping.
raryelcostasouza Jul 8, 2025
6a9ec70
upx fix file
raryelcostasouza Jul 8, 2025
5b48465
install upx latest instead of apt
raryelcostasouza Jul 8, 2025
d76090e
upx ultra brute
raryelcostasouza Jul 8, 2025
bc6eaf4
upx best
raryelcostasouza Jul 8, 2025
a367d4c
remove upx layer
raryelcostasouza Jul 8, 2025
9d28935
revert back zip command
raryelcostasouza Jul 8, 2025
d0aceec
Remove zip layer
raryelcostasouza Jul 9, 2025
7233ac0
Added xcb dependency install. Remove double zipping
raryelcostasouza Jul 9, 2025
c685849
restore zip step before upload
raryelcostasouza Jul 9, 2025
3586541
Re-add zip before upload
raryelcostasouza Jul 9, 2025
67987d2
install lib sox depe
raryelcostasouza Jul 9, 2025
384e4ca
libsox and ccache dep packages added
raryelcostasouza Jul 9, 2025
7867904
fix double zipping
raryelcostasouza Jul 9, 2025
40cce07
removed double zipping and added suffix for compiler name
raryelcostasouza Jul 9, 2025
8260240
Compiler name suffix added to package
raryelcostasouza Jul 9, 2025
38ff7bf
Correct upload level renaming
raryelcostasouza Jul 9, 2025
bee1931
Bump version to 2.1
pyTranscriber Jul 13, 2025
98e5f61
2.1 release notes
raryelcostasouza Jul 13, 2025
4edcdec
added more detail on cuda support changes
raryelcostasouza Jul 14, 2025
6c6f99d
changed windows workflow to fix double zipping problem
MiniMohsen Aug 22, 2025
1eeec50
fixed windows workflows (attempt 2)
MiniMohsen Aug 26, 2025
5d0f9c4
Merge pull request #58 from MiniMohsen/develop
raryelcostasouza Aug 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: @raryelcostasouza # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: pytranscriber # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

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

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

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

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
120 changes: 120 additions & 0 deletions .github/workflows/linux-nuitka.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Linux Nuitka Pipeline

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-22.04 # Ensure the job runs only on Ubuntu 22.04

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all tags

- name: Get latest Git tag
id: get_version
run: |
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.1.0")
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Resolved version: $VERSION"

- name: Install missing system libraries (XCB, TBB, etc.)
run: |
sudo apt-get update
sudo apt-get install -y \
libxcb1 \
libxcb-keysyms1 \
libxcb-shape0 \
libxcb-xkb1 \
libxcb-render-util0 \
libxcb-image0 \
libxcb-xinerama0 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libtbb12 \
ccache \
libsox-dev


- name: Install FFmpeg
run: sudo apt update && sudo apt install -y ffmpeg

- name: Verify FFmpeg installation
run: |
which ffmpeg
ffmpeg -version

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Set up Python virtual environment
run: |
python -m venv .venv

- name: Install dependencies
run: |
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install nuitka

- name: Verify Whisper assets directory
run: |
source .venv/bin/activate
whisperPath=$(python -c "import whisper; print(whisper.__file__)")
assetsPath=$(dirname $whisperPath)/assets
if [ -d "$assetsPath" ]; then
echo "The 'assets' directory exists at: $assetsPath"
else
echo "The 'assets' directory DOES NOT exist."
exit 1
fi

- name: Compile with Nuitka
run: |
source .venv/bin/activate
ffmpegPath=$(which ffmpeg)
nuitka \
--assume-yes-for-downloads \
--enable-plugin=pyqt5 \
--include-data-files="pytranscriber.sqlite=pytranscriber.sqlite" \
--include-data-files="$ffmpegPath=ffmpeg" \
--include-data-files="pytranscriber/gui/*.qm=pytranscriber/gui/" \
--include-package-data="whisper:assets/*=whisper/assets" \
main.py \
--onefile \
--output-dir=dist

- name: Zip the binary with version number
run: |
cd dist
mv main.bin "pyTranscriber-${VERSION}"

- name: Upload built executable
uses: actions/upload-artifact@v4
with:
name: pyTranscriber-linux-nuitka-${{ env.VERSION }}
path: ./dist/pyTranscriber-${{ env.VERSION }} # Adjust this path if Nuitka outputs elsewhere

download:
runs-on: ubuntu-22.04
needs: build
steps:
- name: Download built executable
uses: actions/download-artifact@v4
with:
path: ./output

- name: List downloaded files
run: dir ./output
112 changes: 112 additions & 0 deletions .github/workflows/linux-pyinstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Linux PyInstaller

on:
push:
branches:
- master
- develop
pull_request:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all tags

- name: Get latest Git tag
id: get_version
run: |
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.1.0")
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Resolved version: $VERSION"

- name: Install missing system libraries (XCB, TBB, etc.)
run: |
sudo apt-get update
sudo apt-get install -y \
libxcb1 \
libxcb-keysyms1 \
libxcb-shape0 \
libxcb-xkb1 \
libxcb-render-util0 \
libxcb-image0 \
libxcb-xinerama0 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libtbb12 \
libsox-dev

- name: Install FFmpeg
run: sudo apt update && sudo apt install -y ffmpeg

- name: Verify FFmpeg installation
run: |
which ffmpeg
ffmpeg -version

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Set up Python virtual environment
run: |
python -m venv .venv

- name: Activate virtual environment and install dependencies
run: |
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller

- name: Verify existence of Whisper assets directory
run: |
source .venv/bin/activate # Activate the virtual environment
ASSETS_PATH=$(python -c "import whisper; import os; print(os.path.join(os.path.dirname(whisper.__file__), 'assets'))")
if [ -d "$ASSETS_PATH" ]; then
echo "The 'assets' directory exists at: $ASSETS_PATH"
echo "ASSETS_PATH=$ASSETS_PATH" >> $GITHUB_ENV
else
echo "The 'assets' directory does NOT exist."
exit 1
fi

- name: Compile with pyInstaller
run: |
source .venv/bin/activate
FFMPPEG_PATH=$(which ffmpeg)
pyinstaller main.py \
--path="$(pwd)" \
--onefile \
--add-binary="$FFMPPEG_PATH:." \
--add-binary="pytranscriber.sqlite:." \
--add-data="pytranscriber/gui/*.qm:pytranscriber/gui/" \
--add-data="$ASSETS_PATH:whisper/assets"

- name: Rename and zip the binary with version number
run: |
cd dist
mv main "pyTranscriber-${VERSION}"

- name: Upload built executable
uses: actions/upload-artifact@v4
with:
name: pyTranscriber-linux-pyinstaller-${{ env.VERSION }}
path: ./dist/pyTranscriber-${{ env.VERSION }}

download:
runs-on: ubuntu-22.04
needs: build
steps:
- name: Download built executable
uses: actions/download-artifact@v4
with:
path: ./output

- name: List downloaded files
run: ls -la ./output
Loading