diff --git a/dist/macos/Contents/Frameworks/libtsschecker.dylib b/dist/macos/Contents/Frameworks/libtsschecker.dylib new file mode 100644 index 00000000..3141d12f Binary files /dev/null and b/dist/macos/Contents/Frameworks/libtsschecker.dylib differ diff --git a/src/main/java/airsquared/blobsaver/app/natives/TSSChecker.java b/src/main/java/airsquared/blobsaver/app/natives/TSSChecker.java new file mode 100644 index 00000000..774288ba --- /dev/null +++ b/src/main/java/airsquared/blobsaver/app/natives/TSSChecker.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2022 airsquared + * + * This file is part of blobsaver. + * + * blobsaver is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License. + * + * blobsaver is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with blobsaver. If not, see . + */ + +package airsquared.blobsaver.app.natives; + +import com.sun.jna.StringArray; + +public class TSSChecker { + + public static int main(String... args) { + return main(args.length, new StringArray(args)); + } + + private static native int main(int argc, StringArray argv); + + static { + NativeUtils.register(TSSChecker.class, "tsschecker"); + } +} diff --git a/src/test/java/airsquared/blobsaver/app/natives/TSSCheckerTest.java b/src/test/java/airsquared/blobsaver/app/natives/TSSCheckerTest.java new file mode 100644 index 00000000..e65b9084 --- /dev/null +++ b/src/test/java/airsquared/blobsaver/app/natives/TSSCheckerTest.java @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2022 airsquared + * + * This file is part of blobsaver. + * + * blobsaver is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License. + * + * blobsaver is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with blobsaver. If not, see . + */ + +package airsquared.blobsaver.app.natives; + +import airsquared.blobsaver.app.BlobsaverTest; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.EnabledOnOs; +import org.junit.jupiter.api.condition.OS; + +class TSSCheckerTest extends BlobsaverTest { + + @Test + @EnabledOnOs(OS.MAC) + public void mainTest() { + System.err.println(TSSChecker.main("--help")); + } +} \ No newline at end of file