Merge branch 'master' into making-things-easy
Conflicts: .gitignore Rakefile
4
.gitignore
vendored
@@ -1,6 +1,10 @@
|
||||
.DS_Store
|
||||
.project
|
||||
.svn
|
||||
atom-build
|
||||
atom.xcodeproj
|
||||
build
|
||||
atom-build
|
||||
.xcodebuild-info
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
30
Rakefile
@@ -1,24 +1,21 @@
|
||||
require 'timeout'
|
||||
|
||||
$ATOM_ARGS = []
|
||||
ENV['PATH'] = "#{ENV['PATH']}:/opt/github/bin/"
|
||||
|
||||
ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin/"
|
||||
COFFEE_PATH = "node_modules/.bin/coffee"
|
||||
BUILD_DIR = 'atom-build'
|
||||
|
||||
desc "Create xcode project from gpy file"
|
||||
task "create-project" do
|
||||
`rm -rf atom.xcodeproj`
|
||||
`python tools/gyp/gyp --depth=. atom.gyp`
|
||||
# `killall -c Xcode -9 2> /dev/null `
|
||||
# `open atom.xcodeproj` # In order for the xcodebuild to know about the schemes, the project needs to have been opened once. This is xcode bullshit and is a bug on Apple's end (No radar has been file because I have no faith in radar's)
|
||||
Timeout::timeout(10) do
|
||||
sleep 0 while `xcodebuild -list` =~ /This project contains no schemes./ # Give xcode some time to open
|
||||
end
|
||||
end
|
||||
|
||||
desc "Build Atom via `xcodebuild`"
|
||||
task :build => ["create-project", "verify-prerequisites"] do
|
||||
command = "xcodebuild -target Atom -configuration Debug -scheme Atom" # -scheme is required, otherwise xcodebuild creates a binary that won't run on Corey's Air. He recieves the error "Check failed: !loaded_locale.empty(). Locale could not be found for en-US"
|
||||
task :build => "create-project" do
|
||||
command = "xcodebuild -target Atom configuration=Release SYMROOT=#{BUILD_DIR}"
|
||||
puts command
|
||||
output = `#{command}`
|
||||
if $?.exitstatus != 0
|
||||
$stderr.puts "Error #{$?.exitstatus}:\n#{output}"
|
||||
@@ -89,7 +86,8 @@ task :nof do
|
||||
system %{find . -name *spec.coffee | xargs sed -E -i "" "s/f+(it|describe) +(['\\"])/\\1 \\2/g"}
|
||||
end
|
||||
|
||||
task "copy-files-to-bundle" => ["verify-prerequisites", "create-xcodebuild-info"] do
|
||||
desc "Copy files to bundle and compile CoffeeScripts"
|
||||
task :"copy-files-to-bundle" do
|
||||
project_dir = ENV['PROJECT_DIR'] || '.'
|
||||
built_dir = ENV['BUILT_PRODUCTS_DIR'] || '.'
|
||||
contents_dir = ENV['CONTENTS_FOLDER_PATH']
|
||||
@@ -104,19 +102,7 @@ task "copy-files-to-bundle" => ["verify-prerequisites", "create-xcodebuild-info"
|
||||
rm_rf dest_path
|
||||
cp_r dir, dest_path
|
||||
|
||||
`coffee -c '#{dest_path.gsub(" ", "\\ ")}'`
|
||||
end
|
||||
end
|
||||
|
||||
task "create-xcodebuild-info" do
|
||||
`echo $TARGET_BUILD_DIR/$FULL_PRODUCT_NAME > .xcodebuild-info`
|
||||
end
|
||||
|
||||
task :"verify-prerequisites" do
|
||||
`hash coffee`
|
||||
if not $?.success?
|
||||
abort "error: coffee is required but it's not installed - " +
|
||||
"http://coffeescript.org/ - (try `npm i -g coffee-script`)"
|
||||
`#{COFFEE_PATH} -c '#{dest_path.gsub(" ", "\\ ")}'`
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
10
atom.gyp
@@ -143,9 +143,7 @@
|
||||
{
|
||||
'postbuild_name': 'Copy and Compile Static Files',
|
||||
'action': [
|
||||
'rake',
|
||||
'--trace',
|
||||
'copy-files-to-bundle',
|
||||
'script/copy-files-to-bundle'
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -172,7 +170,7 @@
|
||||
'action': [
|
||||
'cp',
|
||||
'-r',
|
||||
'cef/resources',
|
||||
'cef/Resources',
|
||||
'${BUILT_PRODUCTS_DIR}/Atom.app/Contents/Frameworks/Chromium Embedded Framework.framework/'
|
||||
],
|
||||
},
|
||||
@@ -325,9 +323,7 @@
|
||||
{
|
||||
'postbuild_name': 'Copy and Compile Static Files',
|
||||
'action': [
|
||||
'rake',
|
||||
'--trace',
|
||||
'copy-files-to-bundle',
|
||||
'script/copy-files-to-bundle'
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
|
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 752 B |
BIN
cef/Resources/am.lproj/locale.pak
Normal file
BIN
cef/Resources/ar.lproj/locale.pak
Normal file
BIN
cef/Resources/bg.lproj/locale.pak
Normal file
BIN
cef/Resources/bn.lproj/locale.pak
Normal file
BIN
cef/Resources/ca.lproj/locale.pak
Normal file
BIN
cef/Resources/cef.pak
Normal file
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 183 B |
|
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
cef/Resources/cs.lproj/locale.pak
Normal file
BIN
cef/Resources/da.lproj/locale.pak
Normal file
BIN
cef/Resources/de.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
BIN
cef/Resources/el.lproj/locale.pak
Normal file
BIN
cef/Resources/en.lproj/locale.pak
Normal file
BIN
cef/Resources/en_GB.lproj/locale.pak
Normal file
BIN
cef/Resources/es.lproj/locale.pak
Normal file
BIN
cef/Resources/es_419.lproj/locale.pak
Normal file
BIN
cef/Resources/et.lproj/locale.pak
Normal file
BIN
cef/Resources/fa.lproj/locale.pak
Normal file
BIN
cef/Resources/fi.lproj/locale.pak
Normal file
BIN
cef/Resources/fil.lproj/locale.pak
Normal file
BIN
cef/Resources/fr.lproj/locale.pak
Normal file
BIN
cef/Resources/gu.lproj/locale.pak
Normal file
BIN
cef/Resources/he.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 239 B |
BIN
cef/Resources/hi.lproj/locale.pak
Normal file
BIN
cef/Resources/hr.lproj/locale.pak
Normal file
BIN
cef/Resources/hu.lproj/locale.pak
Normal file
BIN
cef/Resources/id.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
cef/Resources/it.lproj/locale.pak
Normal file
BIN
cef/Resources/ja.lproj/locale.pak
Normal file
BIN
cef/Resources/kn.lproj/locale.pak
Normal file
BIN
cef/Resources/ko.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 341 B |
BIN
cef/Resources/lt.lproj/locale.pak
Normal file
BIN
cef/Resources/lv.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 411 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
BIN
cef/Resources/ml.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
BIN
cef/Resources/mr.lproj/locale.pak
Normal file
BIN
cef/Resources/ms.lproj/locale.pak
Normal file
BIN
cef/Resources/nb.lproj/locale.pak
Normal file
BIN
cef/Resources/nl.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 90 B After Width: | Height: | Size: 90 B |
|
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 209 B |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
|
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 193 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
BIN
cef/Resources/pl.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
cef/Resources/pt_BR.lproj/locale.pak
Normal file
BIN
cef/Resources/pt_PT.lproj/locale.pak
Normal file
BIN
cef/Resources/ro.lproj/locale.pak
Normal file
BIN
cef/Resources/ru.lproj/locale.pak
Normal file
BIN
cef/Resources/sk.lproj/locale.pak
Normal file
BIN
cef/Resources/sl.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
|
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 177 B |
BIN
cef/Resources/sr.lproj/locale.pak
Normal file
BIN
cef/Resources/sv.lproj/locale.pak
Normal file
BIN
cef/Resources/sw.lproj/locale.pak
Normal file
BIN
cef/Resources/ta.lproj/locale.pak
Normal file
BIN
cef/Resources/te.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
cef/Resources/th.lproj/locale.pak
Normal file
BIN
cef/Resources/tr.lproj/locale.pak
Normal file
BIN
cef/Resources/uk.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 819 B After Width: | Height: | Size: 819 B |
|
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 120 B |
BIN
cef/Resources/vi.lproj/locale.pak
Normal file
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |