Unverified Commit 2e058142 authored by stuartmorgan's avatar stuartmorgan Committed by GitHub

Fix macOS App.framework version symlink (#39702)

The Current->A symlink in a framework shouldn't have a trailing slash;
some versions of codesigning consider the version with a trailing slash
unsignable.
parent 9b73689f
...@@ -415,7 +415,7 @@ abstract class MacOSBundleFlutterAssets extends Target { ...@@ -415,7 +415,7 @@ abstract class MacOSBundleFlutterAssets extends Target {
if (!currentVersion.existsSync()) { if (!currentVersion.existsSync()) {
final String linkPath = fs.path.relative(outputDirectory.path, final String linkPath = fs.path.relative(outputDirectory.path,
from: outputDirectory.parent.path); from: outputDirectory.parent.path);
currentVersion.createSync('$linkPath${fs.path.separator}'); currentVersion.createSync(linkPath);
} }
// Create symlink to current resources. // Create symlink to current resources.
final Link currentResources = frameworkRootDirectory final Link currentResources = frameworkRootDirectory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment