Skip to content

Commit a2a217d

Browse files
committed
build: update script to use local libvlc archive
1 parent 9523637 commit a2a217d

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

get-libvlc-windows.sh

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#! /bin/bash
2-
3-
version="b5d43240"
4-
date="20200512-0453"
52
sourceLocation="Assets/PluginSource"
6-
downloadUrl="https://artifacts.videolan.org/vlc/nightly-win64-llvm/$date/vlc-4.0.0-dev-win64-$version.7z"
73

84
rm ./build.7z
95
rm -rf ./build
10-
rm -rf $sourceLocation/include
116
rm -rf $sourceLocation/sdk
127
rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/libvlc.dll
138
rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/libvlccore.dll
@@ -16,14 +11,8 @@ rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/locale
1611
rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/lua
1712
rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/plugins
1813

19-
curl -Lsfo build.7z $downloadUrl
20-
7z x build.7z -o./build
14+
7z x vlc-4.0.0-dev-win64.7z -o./build
2115

2216
cp -R ./build/vlc-4.0.0-dev/{libvlc.dll,libvlccore.dll,hrtfs,locale,lua,plugins} Assets/VLC-Unity-Windows/Plugins/x86_64
2317
rm -rf Assets/VLC-Unity-Windows/Plugins/x86_64/lua/http # contains unnecessary js files which make the local Unity Store validator fail
24-
mkdir -p $sourceLocation/sdk/lib/
25-
cp -r ./build/vlc-4.0.0-dev/sdk/lib/ $sourceLocation/sdk/
26-
cp -r ./build/vlc-4.0.0-dev/sdk/include $sourceLocation/include
27-
28-
# rm ./build.7z
29-
# rm -rf ./build
18+
cp -r ./build/vlc-4.0.0-dev/sdk/ $sourceLocation/

0 commit comments

Comments
 (0)