Skip to content

Commit 3aeed42

Browse files
committed
Add build-windows-exe.yml workflow
1 parent a68327c commit 3aeed42

3 files changed

Lines changed: 36 additions & 3 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
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:

bin/tahweel-ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require "glimmer-dsl-libui"
99
require "launchy"
1010
require "tahweel"
1111

12-
Tahweel::Authorizer.authorize
12+
Tahweel::Authorizer.authorize unless defined?(Ocran)
1313

1414
class TahweelApp # rubocop:disable Metrics/ClassLength,Style/Documentation
1515
include Glimmer::LibUI::Application

0 commit comments

Comments
 (0)