Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Cedar Plugin #386

Merged
merged 1 commit into from
Apr 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions CedarPlugin.xcplugin/Contents/Info.plist

This file was deleted.

Binary file removed CedarPlugin.xcplugin/Contents/MacOS/CedarPlugin
Binary file not shown.
3 changes: 0 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ SNIPPET_SENTINEL_VALUE = "isCedarSnippet"
XCODE_TEMPLATES_DIR = "#{ENV['HOME']}/Library/Developer/Xcode/Templates"
XCODE_SNIPPETS_DIR = "#{ENV['HOME']}/Library/Developer/Xcode/UserData/CodeSnippets"

XCODE_PLUGINS_DIR = "#{ENV['HOME']}/Library/Application Support/Developer/Shared/Xcode/Plug-ins/"

LATEST_SDK_VERSION = `xcodebuild -showsdks 2>/dev/null | grep iphonesimulator | cut -d ' ' -f 4`.chomp.split("\n").last
SDK_VERSION = ENV["CEDAR_SDK_VERSION"] || LATEST_SDK_VERSION
SDK_RUNTIME_VERSION = ENV["CEDAR_SDK_RUNTIME_VERSION"] || LATEST_SDK_VERSION
Expand All @@ -32,7 +30,6 @@ DERIVED_DATA_DIR = File.join(PROJECT_ROOT, "derivedData")
TEMPLATES_DIR = File.join(PROJECT_ROOT, "CodeSnippetsAndTemplates", "Templates")
SNIPPETS_DIR = File.join(PROJECT_ROOT, "CodeSnippetsAndTemplates", "CodeSnippets")
DIST_STAGING_DIR = "#{BUILD_DIR}/dist"
PLUGIN_DIR = File.join(PROJECT_ROOT, "CedarPlugin.xcplugin")
PLISTBUDDY = "/usr/libexec/PlistBuddy"

require 'tmpdir'
Expand Down
13 changes: 2 additions & 11 deletions scripts/rake/tasks/install.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tasks related to install, uninstall, reinstall, etc...

desc "Build frameworks and install templates and code snippets"
task :install => [:clean, :uninstall, "dist:prepare", :install_plugin] do
task :install => [:clean, :uninstall, "dist:prepare"] do
puts ""
puts "Installing templates..."
puts ""
Expand All @@ -11,7 +11,7 @@
Shell.run %{rsync -vcrlK "#{DIST_STAGING_DIR}/Library/" ~/Library}
end

task :reinstall => [:uninstall, :install_plugin] do
task :reinstall => [:uninstall] do
Dir.mkdir(DIST_STAGING_DIR) unless File.exists?(DIST_STAGING_DIR)

Shell.run %{rm -rf "#{DIST_STAGING_DIR}"/*}
Expand All @@ -30,15 +30,6 @@
Shell.run %{rsync -vcrlK #{File.join(DIST_STAGING_DIR, "Library")} ~/Library}
end

desc "Install the CedarPlugin into Xcode (restart required)"
task :install_plugin do
puts ""
puts "Installing the CedarPlugin..."
puts ""

Shell.run %{mkdir -p "#{XCODE_PLUGINS_DIR}" && cp -rv "#{PLUGIN_DIR}" "#{XCODE_PLUGINS_DIR}"}
end

desc "Build the frameworks and upgrade the target"
task :upgrade, [:path_to_framework] do |task, args|
usage_string = 'Usage: rake upgrade["/path/to/Cedar.framework"]'
Expand Down