Skip to content

Commit

Permalink
maint: Simplify local deb-build script (#418)
Browse files Browse the repository at this point in the history
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.

This affects only the development build done locally. This script is not
used by CI. It is used only in two situations:
- When invoked directly because you want to build the deb in your
machine
- When running the E2E tests without `$env:UP4W_TEST_BUILD_PATH`. (The
CI does assign it, so this script is not used).
  • Loading branch information
EduardGomezEscandell authored Nov 22, 2023
2 parents afb0c2c + fe2d339 commit 68bb3c1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tools/build/build-deb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ 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}"
done
# Build
bash -e "${build_dir}/tools/build/build-deb.sh"
Expand Down

0 comments on commit 68bb3c1

Please sign in to comment.