ZeroInstall.Commands.Utils.Exporter.DeployImportScript C# (CSharp) Метод

DeployImportScript() публичный Метод

Deploys a bootstrap file for importing exported feeds and implementations.
public DeployImportScript ( ) : void
Результат void
        public void DeployImportScript()
        {
            string fileName = (_architecture.OS == OS.Windows) ? "import.cmd" : "import.sh";
            string target = Path.Combine(_destination, fileName);

            typeof(Exporter).CopyEmbeddedToFile(fileName, target);
            if (UnixUtils.IsUnix)
                UnixUtils.SetExecutable(target, executable: true);
        }

Usage Example

Пример #1
0
        public void DownloadPackage(string fastPackageReference, string location)
        {
            var requirements = ParseReference(fastPackageReference);
            var selections = Solve(requirements);
            Fetcher.Fetch(SelectionsManager.GetUncachedImplementations(selections));

            var exporter = new Exporter(selections, requirements, location);
            exporter.ExportFeeds(FeedCache, OpenPgp);
            exporter.ExportImplementations(Store, Handler);
            exporter.DeployImportScript();
            exporter.DeployBootstrapIntegrate(Handler);

            Yield(requirements);

            SelfUpdateCheck();
        }
All Usage Examples Of ZeroInstall.Commands.Utils.Exporter::DeployImportScript