您的位置:首页 > 产品设计 > UI/UE

Atom build

2016-08-05 12:39 387 查看
Atom是一款很不错的markdown编辑器,github官方出版,开源,有望成为精品。

一:clone资源库:
1.1:问题:
~/GitHub0:00:27
$ git clonehttp://github.com/atom/atom.git
Cloning into 'atom'...
remote: Counting objects: 159966, done.
remote: Compressing objects: 100% (4/4), done.
error: RPC failed; curl 56 SSLRead() return error -366.00 KiB/s   
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

1.2:问题解释:http://blog.csdn.net/www9500net_/article/details/51742212

1.3:在git目录下才能配置:

~/GitHub/GitRepository/gitStudy.giton
master⌚
0:26:17
$ git config http.postBuffer 7654321

~/GitHub/GitRepository/gitStudy.giton
master⌚
0:26:21
$ git config --list
credential.helper=osxkeychain
user.email=sunalong@ztgame.com
user.name=sunalong
color.ui=auto
core.autocrlf=input
core.repositoryformatversion=0
core.filemode=true
core.bare=true
core.ignorecase=true
core.precomposeunicode=true
receive.denydeletecurrent=false
http.postbuffer=7654321
1.4:再次clone:
~/GitHub0:26:38
$ git clonehttp://github.com/atom/atom.git
Cloning into 'atom'...
remote: Counting objects: 159966, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 159966 (delta 10), reused 10 (delta 10), pack-reused 159952
Receiving objects: 100% (159966/159966), 275.14 MiB | 2.73 MiB/s, done.
Resolving deltas: 100% (113721/113721), done.
Checking connectivity... done.
二:编译:
2.1:编译时出现错误:
~/GitHub/atomon
master⌚
10:08:47
$ script/build
Node: v5.9.0
npm: v3.7.3
Installing build modules...
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools'
is a command line tools instance
=> Took 557981ms.

2.2:解决错误:
~/GitHub/atomon
master⌚
10:24:44
$ xcode-select -p
/Library/Developer/CommandLineTools

~/GitHub/atomon
master⌚
10:27:38
$ sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer
Password:

~/GitHub/atomon
master⌚ 10:28:23
$ xcode-select -p
/Applications/Xcode-beta.app/Contents/Developer
2.3:编译:
~/GitHub/atomon
master⌚
10:28:15
$ script/build
Node: v5.9.0
npm: v3.10.5
Installing build modules...
=> Took 2550ms.

Installing apm...
=> Took 1325ms.

Installing modules✓
Installing atom-dark-syntax@0.27.0✓
Installing atom-dark-ui@0.52.0✓
Installing atom-light-syntax@0.28.0✓
Installing atom-light-ui@0.44.0✓
Installing base16-tomorrow-dark-theme@1.1.0✓
Installing base16-tomorrow-light-theme@1.1.1✓
Installing one-dark-ui@1.5.0✓
Installing one-light-ui@1.5.0✓
Installing one-dark-syntax@1.3.0✓
Installing one-light-syntax@1.3.0✓
Installing solarized-dark-syntax@1.0.2✓
Installing solarized-light-syntax@1.0.2✓
Installing about@1.6.0✓
Installing archive-view@0.61.1✓
Installing autocomplete-atom-api@0.10.0✓
Installing autocomplete-css@0.11.2✓
Installing autocomplete-html@0.7.2✓
Installing autocomplete-plus@2.31.1✓
Installing autocomplete-snippets@1.11.0✓
Installing autoflow@0.27.0✓
Installing autosave@0.23.1✓
Installing background-tips@0.26.1✓
Installing bookmarks@0.41.0✓
Installing bracket-matcher@0.82.1✓
Installing command-palette@0.38.0✓
Installing deprecation-cop@0.54.1✓
Installing dev-live-reload@0.47.0✓
Installing encoding-selector@0.22.0✓
Installing exception-reporting@0.38.1✓
Installing find-and-replace@0.201.0✓
Installing fuzzy-finder@1.3.0✓
Installing git-diff@1.1.0✓
Installing go-to-line@0.31.0✓
Installing grammar-selector@0.48.1✓
Installing image-view@0.58.2✓
Installing incompatible-packages@0.26.1✓
Installing keybinding-resolver@0.35.0✓
Installing line-ending-selector@0.5.0✓
Installing link@0.31.1✓
Installing markdown-preview@0.158.0✓
Installing metrics@0.53.1✓
Installing notifications@0.65.0✓
Installing open-on-github@1.2.0✓
Installing package-generator@1.0.0✓
Installing settings-view@0.241.1✓
Installing snippets@1.0.2✓
Installing spell-check@0.67.1✓
Installing status-bar@1.4.0✓
Installing styleguide@0.47.0✓
Installing symbols-view@0.113.0✓
Installing tabs@0.100.0✓
Installing timecop@0.33.2✓
Installing tree-view@0.208.2✓
Installing update-package-dependencies@0.10.0✓
Installing welcome@0.34.0✓
Installing whitespace@0.33.0✓
Installing wrap-guide@0.38.1✓
Installing language-c@0.52.1✓
Installing language-clojure@0.21.0✓
Installing language-coffee-script@0.47.2✓
Installing language-csharp@0.12.1✓
Installing language-css@0.37.1✓
Installing language-gfm@0.88.0✓
Installing language-git@0.15.0✓
Installing language-go@0.42.1✓
Installing language-html@0.45.1✓
Installing language-hyperlink@0.16.0✓
Installing language-java@0.23.0✓
Installing language-javascript@0.119.0✓
Installing language-json@0.18.2✓
Installing language-less@0.29.5✓
Installing language-make@0.22.2✓
Installing language-mustache@0.13.0✓
Installing language-objective-c@0.15.1✓
Installing language-perl@0.35.0✓
Installing language-php@0.37.2✓
Installing language-property-list@0.8.0✓
Installing language-python@0.45.0✓
Installing language-ruby@0.69.0✓
Installing language-ruby-on-rails@0.25.0✓
Installing language-sass@0.56.0✓
Installing language-shellscript@0.22.4✓
Installing language-source@0.9.0✓
Installing language-sql@0.23.0✓
Installing language-text@0.7.1✓
Installing language-todo@0.28.0✓
Installing language-toml@0.18.0✓
Installing language-xml@0.34.9✓
Installing language-yaml@0.26.0✓
=> Took 924218ms.

Deduping modules✓
=> Took 2461ms.

Running "download-electron" task【此处停留半小时未动】


2.4:强行停止后翻墙:
~/GitHub/atomon
master⌚
11:39:24
$ script/build
Node: v5.9.0
npm: v3.10.5
Installing build modules...
=> Took 2620ms.

Installing apm...
=> Took 1329ms.

Installing modules✓
=> Took 2673ms.

Deduping modules✓
=> Took 2308ms.

Running "download-electron" task

Running "download-electron-chromedriver" task

Running "build" task

Running "babel:dist" (babel) task

Running "coffee:glob_to_multiple" (coffee) task
>>335 files created.

Running "prebuild-less:src" (prebuild-less) task
>>1638 files compiled, 0 files reused

Running "cson:glob_to_multiple" (cson) task
>>172 files compiled to JSON.

Running "peg:glob_to_multiple" (peg) task
Generating parser from "node_modules/snippets/lib/snippet-body.pegjs"...
Parser "/Users/along/GitHub/atom/out/Atom.app/Contents/Resources/app/node_modules/snippets/lib/snippet-body.js" generated
in 27ms.

Running "generate-license:save" (generate-license) task

Running "generate-module-cache" task

Running "compile-packages-slug" task

Running "copy-info-plist" task

Running "set-version" task

Running "generate-asar" task

Running "install" task

Done, without errors.

Execution Time (2016-08-05 03:39:36 UTC)
download-electron               4m 44.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 76%
download-electron-chromedriver     37.5s  ▇▇▇▇ 10%
build                               6.6s  ▇ 2%
coffee:glob_to_multiple             6.5s  ▇ 2%
prebuild-less:src                  24.7s  ▇▇ 7%
generate-asar                       4.3s  ▇ 1%
Total 6m 12.7s

三:Done:
在应用程序中出现了Atom.app,能使用。 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息