Skip to content

Commit

Permalink
Finalize plugin updates
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters committed Nov 9, 2023
1 parent de39e65 commit e725373
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
11 changes: 0 additions & 11 deletions apollo-ios/Plugins/InstallCLI/InstallCLIPluginCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@ struct InstallCLIPluginCommand: CommandPlugin {
}
}

func createSymbolicLink(from: PackagePlugin.Path, to: PackagePlugin.Path) throws {
let task = Process()
task.standardInput = nil
task.environment = ProcessInfo.processInfo.environment
task.arguments = ["-c", "ln -f -s '\(from.string)' '\(to.string)'"]
task.executableURL = URL(fileURLWithPath: "/bin/zsh")
try task.run()
task.waitUntilExit()
}

}

#if canImport(XcodeProjectPlugin)
Expand All @@ -39,7 +29,6 @@ extension InstallCLIPluginCommand: XcodeCommandPlugin {
func performCommand(context: XcodePluginContext, arguments: [String]) throws {
print("Installing Apollo CLI Plugin to Xcode project \(context.xcodeProject.displayName)")
let apolloPath = "\(context.pluginWorkDirectory)/../../checkouts/apollo-ios"
print("Apollo Path - \(apolloPath)")
let process = Process()
let path = try context.tool(named: "sh").path
process.executableURL = URL(fileURLWithPath: path.string)
Expand Down
4 changes: 0 additions & 4 deletions apollo-ios/scripts/download-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ then
exit 1
fi

echo "Directory - $directory"
APOLLO_VERSION=$(sh "$directory/get-version.sh")
echo "Apollo Version - $APOLLO_VERSION"
DOWNLOAD_URL="https://www.github.com/apollographql/apollo-ios/releases/download/$APOLLO_VERSION/apollo-ios-cli.tar.gz"
echo "Download URL - $DOWNLOAD_URL"
FILE_PATH="$projectDir/apollo-ios-cli.tar.gz"
echo "File Path - $FILE_PATH"
curl -L "$DOWNLOAD_URL" -s -o "$FILE_PATH"
tar -xvf "$FILE_PATH"
rm -f "$FILE_PATH"

0 comments on commit e725373

Please sign in to comment.