diff options
author | Rory& <root@rory.gay> | 2024-01-24 12:08:36 +0100 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-01-24 12:08:36 +0100 |
commit | ebb775340a8198247113b9a3374cfda159a9fe3c (patch) | |
tree | 36ec2b971004d5a3bf9df7605d064554f22b3ea0 /scripts/mkdeps | |
parent | LibMatrix update, refactor login page, add web manifest (diff) | |
download | MatrixUtils-ebb775340a8198247113b9a3374cfda159a9fe3c.tar.xz |
Minor cleanup of file tree
Diffstat (limited to 'scripts/mkdeps')
-rwxr-xr-x | scripts/mkdeps | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/mkdeps b/scripts/mkdeps new file mode 100755 index 0000000..ccb1370 --- /dev/null +++ b/scripts/mkdeps @@ -0,0 +1,36 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i "bash -x" -p bash nuget-to-nix git dotnet-sdk_8 nix curl jq yq +projects=( + MatrixRoomUtils.Web +) + +find . | grep -E '(bin|obj)$' | while read -r d; do rm -rf "$d" & done +wait + +execDir=$(pwd) + +for p in $projects +do + ( + set -euo pipefail + cd "$p" || exit + pwd + 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 + git add deps.nix + ) + nix flake update + git add flake.lock +done |