Closed SecondFlight closed 1 year ago
I forgot to put it in the list, but I had to set the Powershell execution policy to Unrestricted
- see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2
This process is now a lot simpler after removing Rust from the project. Readme update incoming soon with instructions.
Here are steps I used to build Anthem on a fresh Windows VM. Most of the issues I had should be solved, but I've left the steps I used to solve them in case they're helpful.
winget install llvm
flutter pub get
(This step was added later after an issue occurred - see below)cargo install cbindgen
dart pub global activate ffigen
cargo install flutter_rust_bridge_codegen
flutter pub get
, then retry the scriptflutter run
flutter pub run build-runner clean
, thenflutter pub run build-runner build --delete-conflicting-outputs
./scripts/watch.ps1
again, then open each file that has this issue, press space, save, then backspace, then save.git config --global --add safe.directory C:/Users/User/Documents/Code/anthem/build/windows/_deps/corrosion-src
flutter pub upgrade
for good measure.