Skip to content

Commit

Permalink
Store downloader in repository root dist directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Feb 27, 2025
1 parent e7bfa6c commit 5aff396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/downloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Check file size
uses: ./.github/actions/check-file-size
with:
artifact: "./installer-downloader/dist/mullvad-downloader.exe"
artifact: "./dist/mullvad-downloader.exe"
max_size: ${{ env.MAX_BINARY_SIZE }}

build-macos:
Expand All @@ -77,5 +77,5 @@ jobs:
- name: Check file size
uses: ./.github/actions/check-file-size
with:
artifact: "./installer-downloader/dist/mullvad-downloader.dmg"
artifact: "./dist/mullvad-downloader.dmg"
max_size: ${{ env.MAX_BINARY_SIZE }}
4 changes: 3 additions & 1 deletion installer-downloader/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export CARGO_TARGET_DIR
# Temporary build directory
BUILD_DIR="./build"
# Successfully built (and signed) artifacts
DIST_DIR="./dist"
DIST_DIR="../dist"

BUNDLE_NAME="MullvadDownloader"
BUNDLE_ID="net.mullvad.$BUNDLE_NAME"
Expand Down Expand Up @@ -236,6 +236,8 @@ function dist_macos_app {

# Move to dist dir
log_info "Moving final artifacts to $DIST_DIR"
rm -rf "$DIST_DIR/$FILENAME.app/"
rm -rf "$DIST_DIR/$FILENAME.dmg"
mv "$app_path" "$DIST_DIR/"
mv "$dmg_path" "$DIST_DIR/"
}
Expand Down

0 comments on commit 5aff396

Please sign in to comment.