Skip to content

Commit

Permalink
Complete the all platform lpac dependencies for the standalone jar
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaSekiu committed Sep 11, 2024
1 parent fa7eba2 commit 707d28c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Build Standalone Jar
shell: pwsh
run: |
./scripts/Build.ps1
./scripts/Build.ps1 -Target all
- name: Get Short Commit Id
shell: pwsh
Expand Down
8 changes: 8 additions & 0 deletions scripts/Build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env pwsh
param(
[ValidateSet('all', 'macos_universal', 'windows_x86', 'windows_aarch64', 'linux_x86')]
[String]$Target,

[Switch]$NativeExecutable,

[ValidateSet('app-image', 'exe', 'msi', 'rpm', 'deb', 'pkg', 'dmg')]
Expand Down Expand Up @@ -30,6 +33,11 @@ if ($PSVersionTable.Platform -eq "Unix")

$BuildArgument = @(if($NativeExecutable) { 'jpackage' } else { 'shadowJar' })

if ($Target)
{
$BuildArgument += "-Ptarget=$Target"
}

if ($NativeExecutable -and $NativeExecutableType)
{
$BuildArgument += "-Ptype=$NativeExecutableType"
Expand Down

0 comments on commit 707d28c

Please sign in to comment.