writeLauncher method
Writes the launcher script at the bundle root.
Implementation
File writeLauncher(Directory rootDirectory) {
var file = File(pack_path.join(rootDirectory.path, launcherPath));
file.writeAsStringSync(launcherScript);
if (!targetsWindows) {
ReleaseStorageDirectory.setFileExecutablePermission(file, true);
}
print(' ยป Launcher: ${file.path} -> bin/$name');
return file;
}