mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-19 05:25:11 +01:00
Try using jpackage with windows
This commit is contained in:
parent
e98b2c6caa
commit
570029b8dc
1 changed files with 9 additions and 5 deletions
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
|
@ -1,7 +1,7 @@
|
||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master, main]
|
branches: [master, main, "2022-02-21-windows-jpackage"]
|
||||||
tags: ["*"]
|
tags: ["*"]
|
||||||
release:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
|
@ -170,15 +170,19 @@ jobs:
|
||||||
uses: olafurpg/setup-scala@v10
|
uses: olafurpg/setup-scala@v10
|
||||||
with:
|
with:
|
||||||
java-version: openjdk@1.17.0
|
java-version: openjdk@1.17.0
|
||||||
|
|
||||||
- name: 'Get Previous tag'
|
- name: 'Get Previous tag'
|
||||||
id: previoustag
|
id: previoustag
|
||||||
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
||||||
with:
|
with:
|
||||||
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found
|
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found
|
||||||
- name: Build msi
|
- name: Build fat jar
|
||||||
shell: bash
|
run: sbt "bundle/assembly"
|
||||||
run: sbt bundle/windows:packageBin
|
- name: View Artifacts
|
||||||
|
run: ls -l
|
||||||
|
- name: Package jar as msi
|
||||||
|
env:
|
||||||
|
pkg-version: ${{steps.previoustag.outputs.tag}}
|
||||||
|
run: "jpackage --win-shortcut --name ${{ env.pkg-name }} --app-version ${{steps.previoustag.outputs.tag}} --type msi -i app\\bundle\\target\\scala-2.13/ --main-class org.bitcoins.bundle.gui.BundleGUI --main-jar ${{ env.pkg-assembly }} --icon app/gui/src/main/resources/icons/bitcoin-s.png"
|
||||||
- name: View artifacts
|
- name: View artifacts
|
||||||
run: ls -R .
|
run: ls -R .
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
|
|
Loading…
Add table
Reference in a new issue