Permalink
Browse files

updated packaging for ios

  • Loading branch information...
1 parent 90cb9bf commit e1a934acdf1006e5217dbbd790a945b492d8096e @wbyoung wbyoung committed Apr 1, 2012
Showing with 75 additions and 9 deletions.
  1. +41 −0 Framework/Greenwich.xcodeproj/project.pbxproj
  2. +14 −0 Framework/PackageReadme.md
  3. +20 −9 package
View
41 Framework/Greenwich.xcodeproj/project.pbxproj
@@ -15,6 +15,9 @@
);
dependencies = (
8BB93D551474CAC00056EC71 /* PBXTargetDependency */,
+ 8B40BE8915289D7800D1A161 /* PBXTargetDependency */,
+ 8B40BE7D15289C8900D1A161 /* PBXTargetDependency */,
+ 8B40BEBB1528A2F400D1A161 /* PBXTargetDependency */,
);
name = Package;
productName = Package;
@@ -113,6 +116,27 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
+ 8B40BE7C15289C8900D1A161 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 8BAD1E54146F114700E16433 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8B2B99A114D347C400A40CD4;
+ remoteInfo = Translator;
+ };
+ 8B40BE8815289D7800D1A161 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 8BAD1E54146F114700E16433 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8BD5E23214D1E7C80021848F;
+ remoteInfo = "Greenwich (iOS)";
+ };
+ 8B40BEBA1528A2F400D1A161 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 8BAD1E54146F114700E16433 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8F6BF6FE14CA19CD00C25754;
+ remoteInfo = Proofer;
+ };
8BB93D541474CAC00056EC71 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 8BAD1E54146F114700E16433 /* Project object */;
@@ -895,6 +919,21 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
+ 8B40BE7D15289C8900D1A161 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8B2B99A114D347C400A40CD4 /* Translator */;
+ targetProxy = 8B40BE7C15289C8900D1A161 /* PBXContainerItemProxy */;
+ };
+ 8B40BE8915289D7800D1A161 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8BD5E23214D1E7C80021848F /* Greenwich (iOS) */;
+ targetProxy = 8B40BE8815289D7800D1A161 /* PBXContainerItemProxy */;
+ };
+ 8B40BEBB1528A2F400D1A161 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8F6BF6FE14CA19CD00C25754 /* Proofer */;
+ targetProxy = 8B40BEBA1528A2F400D1A161 /* PBXContainerItemProxy */;
+ };
8BB93D551474CAC00056EC71 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 8BAD1E6F146F11CB00E16433 /* Greenwich */;
@@ -1027,13 +1066,15 @@
};
8BB93D501474CAA90056EC71 /* Debug */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = 8BAD1EB4146F159C00E16433 /* Framework.xcconfig */;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
8BB93D511474CAA90056EC71 /* Release */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = 8BAD1EB4146F159C00E16433 /* Framework.xcconfig */;
buildSettings = {
PRODUCT_NAME = "$(TARGET_NAME)";
};
View
14 Framework/PackageReadme.md
@@ -0,0 +1,14 @@
+For detailed installation instructions, please visit the project page:
+https://github.com/fadingred/Greenwich
+
+The files included in this distribution are separated into three folders:
+
+ - Mac: All files in this directory are required for Mac OS X projects
+ - iOS: All files in this directory are required for iOS projects
+ - Tools: These are additional tools that can be used with Greenwich
+
+The tools include:
+
+ - The standalone translator app. This is used by translators for iOS applications.
+ - A proofing tool. More info can be found here:
+ https://github.com/fadingred/Greenwich/blob/master/Framework/Proofer/Readme.md
View
29 package
@@ -44,20 +44,31 @@ class Packager < Object
def build
outdir = File.join ENV["PROJECT_DIR"], '..'
version = ENV["GREENWICH_VERSION"]
- framework = File.join ENV["BUILT_PRODUCTS_DIR"], "Greenwich.framework"
scripts = File.join ENV["PROJECT_DIR"], "Scripts"
- framework_archive = File.join outdir, "greenwich_#{version}.tbz"
- dsym_archive = File.join outdir, "greenwich_#{version}.dsym.tbz"
+ readme = File.join ENV["PROJECT_DIR"], "PackageReadme.md"
+ license = File.join ENV["PROJECT_DIR"], "..", "License"
+ mac = [File.join(ENV["BUILT_PRODUCTS_DIR"], "Greenwich.framework"), scripts]
+ ios = [File.join(ENV["BUILT_PRODUCTS_DIR"] + "-iphoneos", "Greenwich.framework"), scripts]
+ tools = [File.join(ENV["BUILT_PRODUCTS_DIR"], "Greenwich Translator.app"), File.join(ENV["BUILT_PRODUCTS_DIR"], "Proofer.app")]
+ archive = File.join outdir, "greenwich_#{version}.tbz"
+ archive_dsym = File.join outdir, "greenwich_#{version}.dsym.tbz"
if ENV["CONFIGURATION"] == "Release"
puts "creating packages..."
- Dir.chdir ENV["BUILT_PRODUCTS_DIR"] do
+ Dir.chdir File.join ENV["BUILT_PRODUCTS_DIR"], ".." do
FileUtils.rm_rf "Greenwich"
- FileUtils.mkdir_p "Greenwich"
- FileUtils.mv framework, "Greenwich"
- FileUtils.cp_r scripts, "Greenwich", :preserve => true
- tbz ["Greenwich"], :output => framework_archive
- tbz Dir.glob("*.dSYM"), :output => dsym_archive
+ FileUtils.mkdir_p "Greenwich/Tools"
+ FileUtils.mkdir_p "Greenwich/Mac"
+ FileUtils.mkdir_p "Greenwich/iOS"
+ mac.each { |file| system "cp", "-R", file, "Greenwich/Mac/" }
+ ios.each { |file| system "cp", "-R", file, "Greenwich/iOS/" }
+ tools.each { |file| system "cp", "-R", file, "Greenwich/Tools/" }
+ FileUtils.cp readme, "Greenwich/Readme"
+ FileUtils.cp license, "Greenwich/License"
+ tbz ["Greenwich"], :output => archive
+ end
+ Dir.chdir File.join ENV["BUILT_PRODUCTS_DIR"] do
+ tbz Dir.glob("*.dSYM"), :output => archive_dsym
end
else
puts "need to build as a release!"

0 comments on commit e1a934a

Please sign in to comment.