From a7e8ec68dc6730b6a7d7f429655bf061f5bfff1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Wed, 22 Nov 2023 09:27:25 +0100 Subject: [PATCH 1/2] Simplify local deb-build script The original idea was to --exclude=docs, but then I figured out we could also exclude .github, as well as .vscode, and my local build folder, etc. Soon enough it became obvious that using a whitelist makes more sense than a black list. --- tools/build/build-deb.ps1 | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/tools/build/build-deb.ps1 b/tools/build/build-deb.ps1 index 575c6a9e8..378562f79 100644 --- a/tools/build/build-deb.ps1 +++ b/tools/build/build-deb.ps1 @@ -66,16 +66,12 @@ cd - # Set up directory build_dir="${HOME}/wsl-pro-service-build" -rsync \ - --recursive \ - --quiet \ - --exclude=".git" \ - --exclude="msix/UbuntuProForWindows" \ - --exclude="gui" \ - --exclude="*vcxproj*" \ - --exclude="*/x64/*" \ - . \ - "${build_dir}" +modules=("agentapi" "common" "contractsapi" "storeapi" "tools" "wsl-pro-service" "wslserviceapi") + +for mod in ${modules[@]}; do + rsync --recursive --quiet "${mod}" "${build_dir}" + echo "Synced $mod" +done # Build bash -e "${build_dir}/tools/build/build-deb.sh" From fe2d3399ece7af428d294a10dc108f6f7a5412ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Wed, 22 Nov 2023 09:31:52 +0100 Subject: [PATCH 2/2] Remove debug prints --- tools/build/build-deb.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/build/build-deb.ps1 b/tools/build/build-deb.ps1 index 378562f79..152f6cfb7 100644 --- a/tools/build/build-deb.ps1 +++ b/tools/build/build-deb.ps1 @@ -70,7 +70,6 @@ modules=("agentapi" "common" "contractsapi" "storeapi" "tools" "wsl-pro-service" for mod in ${modules[@]}; do rsync --recursive --quiet "${mod}" "${build_dir}" - echo "Synced $mod" done # Build