Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Sep 4, 2024
1 parent ebbd9e8 commit f6885d1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@ jobs:
- name: Build with Maven
run: mvn package

- name: Install Chocolatey
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- name: Install Launch4j using Chocolatey
run: |
choco install launch4j -y
- name: Create EXE using Launch4j
- name: Find Launch4j Path and Run
run: |
launch4j launch4j.xml
launch4jPath=$(choco list --local-only launch4j | grep "launch4j" | awk '{print $3}')
echo "Launch4j installed version: $launch4jPath"
launch4jExecutable="C:\ProgramData\chocolatey\lib\launch4j.$launch4jPath\tools\launch4j.exe"
echo "Using Launch4j executable at: $launch4jExecutable"
$launch4jExecutable launch4j.xml
shell: bash


- name: Upload EXE artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit f6885d1

Please sign in to comment.