mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
remove windows binaries from non-windows releases
This commit is contained in:
@@ -69,6 +69,7 @@ jobs:
|
|||||||
cp -r core $FILE
|
cp -r core $FILE
|
||||||
cp -r vendor $FILE
|
cp -r vendor $FILE
|
||||||
cp -r examples $FILE
|
cp -r examples $FILE
|
||||||
|
./ci/remove_windows_binaries.sh $FILE
|
||||||
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
||||||
tar -czvf dist.tar.gz $FILE
|
tar -czvf dist.tar.gz $FILE
|
||||||
- name: Odin run
|
- name: Odin run
|
||||||
@@ -108,6 +109,7 @@ jobs:
|
|||||||
cp -r core $FILE
|
cp -r core $FILE
|
||||||
cp -r vendor $FILE
|
cp -r vendor $FILE
|
||||||
cp -r examples $FILE
|
cp -r examples $FILE
|
||||||
|
./ci/remove_windows_binaries.sh $FILE
|
||||||
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
||||||
tar -czvf dist.tar.gz $FILE
|
tar -czvf dist.tar.gz $FILE
|
||||||
- name: Odin run
|
- name: Odin run
|
||||||
@@ -145,6 +147,7 @@ jobs:
|
|||||||
cp -r core $FILE
|
cp -r core $FILE
|
||||||
cp -r vendor $FILE
|
cp -r vendor $FILE
|
||||||
cp -r examples $FILE
|
cp -r examples $FILE
|
||||||
|
./ci/remove_windows_binaries.sh $FILE
|
||||||
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
|
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
|
||||||
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
||||||
tar -czvf dist.tar.gz $FILE
|
tar -czvf dist.tar.gz $FILE
|
||||||
@@ -183,6 +186,7 @@ jobs:
|
|||||||
cp -r core $FILE
|
cp -r core $FILE
|
||||||
cp -r vendor $FILE
|
cp -r vendor $FILE
|
||||||
cp -r examples $FILE
|
cp -r examples $FILE
|
||||||
|
./ci/remove_windows_binaries.sh $FILE
|
||||||
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
|
dylibbundler -b -x $FILE/odin -d $FILE/libs -od -p @executable_path/libs
|
||||||
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
# Creating a tarball so executable permissions are retained, see https://github.com/actions/upload-artifact/issues/38
|
||||||
tar -czvf dist.tar.gz $FILE
|
tar -czvf dist.tar.gz $FILE
|
||||||
|
|||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
find "$1" -type f \(\
|
||||||
|
-iname "*.exe" \
|
||||||
|
-o -iname "*.dll" \
|
||||||
|
-o -iname "*.lib" \
|
||||||
|
-o -iname "*.pdb" \
|
||||||
|
\) -delete
|
||||||
Reference in New Issue
Block a user