about summary refs log tree commit diff
path: root/mkdeps
diff options
context:
space:
mode:
authorEmma@Rory& <root@rory.gay>2023-08-14 09:32:37 +0200
committerEmma@Rory& <root@rory.gay>2023-08-14 09:32:37 +0200
commit48a6c21db718a986dac24f56f8341b842c2e1a13 (patch)
tree80817c195665e197803dbff7f11ab03ed7e24777 /mkdeps
parentAdd missing dep (diff)
downloadMatrixUtils-48a6c21db718a986dac24f56f8341b842c2e1a13.tar.xz
Update dependencies
Diffstat (limited to 'mkdeps')
-rwxr-xr-xmkdeps20
1 files changed, 14 insertions, 6 deletions
diff --git a/mkdeps b/mkdeps
index e6bea58..eb39592 100755
--- a/mkdeps
+++ b/mkdeps
@@ -4,7 +4,7 @@ projects=(
   MatrixRoomUtils.Web
 )
 
-find . | grep -E '(bin|obj)$' | while read d; do rm -rf $d & done
+find . | grep -E '(bin|obj)$' | while read -r d; do rm -rf "$d" & done
 wait
 
 execDir=$(pwd)
@@ -12,12 +12,20 @@ execDir=$(pwd)
 for p in $projects
 do
   (
-    cd $p
+    set -euo pipefail
+    cd "$p" || exit
     pwd
-    MSBUILDLIVELOGGER=false dotnet restore --packages=packages -v n --ucr
-    #dotnet --list-sdks
-    ${execDir}/nuget-to-nix.sh packages | tee deps.nix
-    #where nuget-to-nix
+    MSBUILDLIVELOGGER=false dotnet restore --packages=packages -v n --ucr || exit 1
+
+    #for blazor: https://globalcdn.nuget.org/packages/microsoft.netcore.app.runtime.mono.browser-wasm.7.0.10.nupkg
+#    if [ -f wwwroot/index.html ]; then
+#      curl -L https://globalcdn.nuget.org/packages/microsoft.netcore.app.runtime.mono.browser-wasm.7.0.10.nupkg -o Microsoft.NETCore.App.Runtime.Mono.browser-wasm.7.0.10.nupkg
+#      mkdir -p packages/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/7.0.10
+#      unzip -d packages/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/7.0.10 Microsoft.NETCore.App.Runtime.Mono.browser-wasm.7.0.10.nupkg
+#      rm Microsoft.NETCore.App.Runtime.Mono.browser-wasm.7.0.10.nupkg
+#    fi
+
+    "${execDir}"/nuget-to-nix.sh packages | tee deps.nix
     pwd
     du -sh packages
     rm -rf packages