Skip to content

Commit

Permalink
Fix Windows build error
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed May 19, 2024
1 parent c784412 commit edf6297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/build-and-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Visual Studio projects generated by Flutter don't have any backend files,
but you can drag and drop files from `cpp` folders to open them in Visual Studio and set breakpoints.

Run `flutter build windows` to build release folder with the app.
The release folder will be located in `flutter/build/windows/runner/Release/`.
The release folder will be located in `flutter/build/windows/x64/runner/Release/`.
To create redistributable copy the following files into the application directory:

```text
Expand Down
6 changes: 3 additions & 3 deletions flutter/windows/windows.mk
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ flutter/windows/release/prepare-dlls:
.PHONY: flutter/windows/release/copy-dlls
flutter/windows/release/copy-dlls:
currentDir=$$(pwd) && cd "${flutter_windows_dlls_path}" && \
cp --target-directory $$currentDir/flutter/build/windows/runner/Release ${flutter_windows_dlls_list}
cp --target-directory $$currentDir/flutter/build/windows/x64/runner/Release ${flutter_windows_dlls_list}

.PHONY: flutter/windows/release/build
flutter/windows/release/build:
rm -rf flutter/build/windows/runner/Release
rm -rf flutter/build/windows/x64/runner/Release
cd flutter && ${_start_args} flutter --no-version-check build windows --no-pub \
${flutter_official_build_arg} \
${flutter_firebase_crashlytics_arg} \
Expand All @@ -75,7 +75,7 @@ flutter/windows/release/name:

rm -rf ${flutter_windows_releases}/${FLUTTER_RELEASE_NAME}
mkdir -p ${flutter_windows_releases}
mv flutter/build/windows/runner/Release ${flutter_windows_releases}/${FLUTTER_RELEASE_NAME}
mv flutter/build/windows/x64/runner/Release ${flutter_windows_releases}/${FLUTTER_RELEASE_NAME}

.PHONY: flutter/windows/release/archive
flutter/windows/release/archive:
Expand Down

0 comments on commit edf6297

Please sign in to comment.