Skip to content

Commit

Permalink
feat(workflow): Copy VSCode redistribution libs over
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Jul 9, 2024
1 parent ada083f commit 530eefa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ jobs:
- run: flutter pub get
- run: flutter build windows --verbose

- name: Copy VSCode redistribution libs over
shell: powershell
working-directory: .\build\windows\x64\runner\Release
# Copy the latest vscode redistribution .dll files into the folder as per
# https://docs.flutter.dev/platform-integration/windows/building#distributing-windows-apps
# to fix crash issues like:
# https://github.com/media-kit/media-kit/issues/842
run:
Copy-Item (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140.dll') -Force .
Copy-Item (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140_1.dll') -Force .
Copy-Item (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find 'VC\Redist\MSVC\*\x64\*\msvcp140_2.dll') -Force .
Copy-Item (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140.dll') -Force .
Copy-Item (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find 'VC\Redist\MSVC\*\x64\*\vcruntime140_1.dll') -Force .

- name: Building the installer
run: |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "installer/windows-installer.iss"
Expand Down
4 changes: 2 additions & 2 deletions macos/Flutter/ephemeral/Flutter-Generated.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FLUTTER_ROOT=C:\Users\bruno\Documents\flutter\flutter
FLUTTER_APPLICATION_PATH=C:\Users\bruno\Documents\flutter\paid_projects\unity
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=3.0.016
FLUTTER_BUILD_NUMBER=3.0.016
FLUTTER_BUILD_NAME=3.0.017
FLUTTER_BUILD_NUMBER=3.0.017
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
Expand Down
4 changes: 2 additions & 2 deletions macos/Flutter/ephemeral/flutter_export_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export "FLUTTER_ROOT=C:\Users\bruno\Documents\flutter\flutter"
export "FLUTTER_APPLICATION_PATH=C:\Users\bruno\Documents\flutter\paid_projects\unity"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=3.0.016"
export "FLUTTER_BUILD_NUMBER=3.0.016"
export "FLUTTER_BUILD_NAME=3.0.017"
export "FLUTTER_BUILD_NUMBER=3.0.017"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
Expand Down

0 comments on commit 530eefa

Please sign in to comment.