File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Windows EXE
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-windows-exe :
11+ name : Build Windows EXE
12+ runs-on : windows-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+ - name : Set up Ruby
18+ uses : ruby/setup-ruby@v1
19+ with :
20+ ruby-version : 3.4.7
21+ bundler-cache : true
22+ - name : Install dependencies
23+ run : bundle add ocran
24+ - name : Get version
25+ id : version
26+ run : |
27+ $version = (Get-Content lib/tahweel/version.rb | Select-String -Pattern 'VERSION = "([^"]+)"').Matches.Groups[1].Value
28+ echo "VERSION=$version" >> $env:GITHUB_OUTPUT
29+ - name : Build Windows EXE
30+ run : bundle exec ocran bin/tahweel-ui --gem-all --icon assets/windows/tahweel.ico --output tahweel-${{ steps.version.outputs.VERSION }}.exe
31+ - name : Upload artifact
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : tahweel-${{ steps.version.outputs.VERSION }}
35+ path : tahweel-${{ steps.version.outputs.VERSION }}.exe
Original file line number Diff line number Diff line change 2222 steps :
2323 - name : Checkout code
2424 uses : actions/checkout@v4
25- with :
26- persist-credentials : false
2725 - name : Set up Ruby
2826 uses : ruby/setup-ruby@v1
2927 with :
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require "glimmer-dsl-libui"
99require "launchy"
1010require "tahweel"
1111
12- Tahweel ::Authorizer . authorize
12+ Tahweel ::Authorizer . authorize unless defined? ( Ocran )
1313
1414class TahweelApp # rubocop:disable Metrics/ClassLength,Style/Documentation
1515 include Glimmer ::LibUI ::Application
You can’t perform that action at this time.
0 commit comments