mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-26 00:37:10 -07:00
Install limbd0 on Ubuntu
This commit is contained in:
parent
683f5dfb3a
commit
7fcbccd565
2 changed files with 12 additions and 9 deletions
2
.github/workflows/bld.yml
vendored
2
.github/workflows/bld.yml
vendored
|
@ -90,6 +90,8 @@ jobs:
|
||||||
java-version: [ 17, 20, 21, 22 ]
|
java-version: [ 17, 20, 21, 22 ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install libmd
|
||||||
|
run: apt-get update -qq && apt-get install -y libmd0
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -8,7 +8,6 @@ package rife.bld.operations;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import rife.bld.operations.exceptions.ExitStatusException;
|
import rife.bld.operations.exceptions.ExitStatusException;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
@ -26,20 +25,22 @@ public class TestJpackageOperation {
|
||||||
.dest(tmpdir.getAbsolutePath())
|
.dest(tmpdir.getAbsolutePath())
|
||||||
.verbose(true);
|
.verbose(true);
|
||||||
|
|
||||||
var os = System.getProperty("os.name");
|
var os = System.getProperty("os.version");
|
||||||
if (os.startsWith("Windows")) {
|
if (os.endsWith("MANJARO")) {
|
||||||
options.type(JpackageOptions.PackageType.EXE);
|
|
||||||
} else if (os.startsWith("Linux")) {
|
|
||||||
options.type(JpackageOptions.PackageType.DEB);
|
options.type(JpackageOptions.PackageType.DEB);
|
||||||
} else if (os.startsWith("Mac")) {
|
|
||||||
options.type(JpackageOptions.PackageType.DMG);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var jpackage = new JpackageOperation().jpackageOptions(options);
|
var jpackage = new JpackageOperation().jpackageOptions(options);
|
||||||
jpackage.execute();
|
jpackage.execute();
|
||||||
|
|
||||||
var deb = new File(tmpdir, "bld_1.0-1_amd64.deb");
|
var files = tmpdir.listFiles();
|
||||||
assertTrue(deb.delete());
|
assertNotNull(files, "files should not be null");
|
||||||
|
assertTrue(files.length > 0, "No files found");
|
||||||
|
|
||||||
|
for (var file : files) {
|
||||||
|
System.out.println(file.getName());
|
||||||
|
file.deleteOnExit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue