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.
This commit is contained in:
stuartmorgan
2019-09-02 16:26:15 -07:00
committed by GitHub
parent 9b73689f37
commit 2e058142d2

View File

@@ -415,7 +415,7 @@ abstract class MacOSBundleFlutterAssets extends Target {
if (!currentVersion.existsSync()) {
final String linkPath = fs.path.relative(outputDirectory.path,
from: outputDirectory.parent.path);
currentVersion.createSync('$linkPath${fs.path.separator}');
currentVersion.createSync(linkPath);
}
// Create symlink to current resources.
final Link currentResources = frameworkRootDirectory