Skip to content

Commit ef125a1

Browse files
authored
Rename net/jpountz/util/win32/amd64/liblz4-java.so to net/jpountz/util/windows/amd64/liblz4-java.dll (#25)
1 parent 1dfbefd commit ef125a1

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/build-all-and-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
if-no-files-found: error
148148

149149
windows:
150-
name: Windows natives (win32/amd64)
150+
name: Windows natives (windows/amd64)
151151
runs-on: windows-latest
152152
steps:
153153
- name: Checkout
@@ -193,8 +193,8 @@ jobs:
193193
- name: Upload native library
194194
uses: actions/upload-artifact@v4
195195
with:
196-
name: natives-win32-amd64
197-
path: target/classes/net/jpountz/util/win32/amd64/liblz4-java.so
196+
name: natives-windows-amd64
197+
path: target/classes/net/jpountz/util/windows/amd64/liblz4-java.dll
198198
if-no-files-found: error
199199

200200
assemble:
@@ -249,13 +249,13 @@ jobs:
249249
shopt -s nullglob
250250
for dir in assemble/natives/*; do
251251
base="$(basename "$dir")"
252-
# Expect names like natives-linux-amd64, natives-darwin-aarch64, natives-win32-amd64
252+
# Expect names like natives-linux-amd64, natives-darwin-aarch64, natives-windows-amd64
253253
os="${base#natives-}"
254254
arch="${os#*-}"; os="${os%%-*}"
255255
case "$os" in
256256
linux) ext=so ;;
257257
darwin) ext=dylib ;;
258-
win32) ext=so ;;
258+
windows) ext=dll ;;
259259
*) echo "Unknown OS in artifact: $base" >&2; continue ;;
260260
esac
261261
dest="target/classes/net/jpountz/util/$os/$arch"

pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,8 @@
539539
<phase>process-resources</phase>
540540
<configuration>
541541
<target>
542-
<property name="os.id" value="win32"/>
543-
<!-- Keep .so to match current Native.resourceName() -->
544-
<property name="lib.ext" value="so"/>
542+
<property name="os.id" value="windows"/>
543+
<property name="lib.ext" value="dll"/>
545544

546545
<!-- Arch mapping (overridable via -Darch.id) -->
547546
<property name="arch.id" value="${os.arch}"/>

src/java/net/jpountz/util/Native.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ public enum Native {
2727
;
2828

2929
private enum OS {
30-
// Even on Windows, the default compiler from cpptasks (gcc) uses .so as a shared lib extension
31-
WINDOWS("win32", "so"), LINUX("linux", "so"), MAC("darwin", "dylib"), SOLARIS("solaris", "so");
30+
WINDOWS("windows", "dll"), LINUX("linux", "so"), MAC("darwin", "dylib"), SOLARIS("solaris", "so");
3231
public final String name, libExtension;
3332

3433
private OS(String name, String libExtension) {

0 commit comments

Comments
 (0)