Electron-windows下的构建

来源:互联网 发布:淘宝买苹果主板靠谱吗 编辑:程序博客网 时间:2024/05/24 07:35

Electron-windows下的构建

flyfish 2015-11-23
编译环境
Windows 8.1
Visual Studio 2013
Python 2.7
Node.js
Git

将Python 2.7,Node.js,Git这三个程序全部安装到C盘根目录,其他目录自行测试

下载源码
$git clone https://github.com/atom/electron.git
这里写图片描述

文件夹大小是17.7M

引导
python script\bootstrap.py -v
这里写图片描述

如果编译64位版本
python script\bootstrap.py -v –target_arch=x64
这里写图片描述

文件夹大小是4.66G

最后的构建
python script\build.py

文件夹大小是6.79G

构建的结果
以electron\out\R 为例
这里写图片描述
这里写图片描述

如果是\electron\out\D中的electron.exe 该文件只有8M

Bootstrap词义的解释

Word Origin and History for bootstrap Expand n. also boot-strap, tab
or loop at the back of the top of a men’s boot, which the wearer
hooked a finger through to pull the boots on, 1870, from boot (n.) +
strap (n.). Circa 1900, to pull (oneself) up by (one’s) bootstraps
was used figuratively of an impossible task (Among the “practical
questions” at the end of chapter one of Steele’s “Popular Physics”
schoolbook (1888) is, “30. Why can not a man lift himself by pulling
up on his boot-straps?”). By 1916 its meaning expanded to include
“better oneself by rigorous, unaided effort.” The meaning “fixed
sequence of instructions to load the operating system of a computer”
(1953) is from the notion of the first-loaded program pulling itself,
and the rest, up by the bootstrap.

bootstrap in Technology Expand operating system, compiler To load and
initialise the operating system on a computer. Normally abbreviated to
” boot “. From the curious expression “to pull oneself up by one’s
bootstraps”, one of the legendary feats of Baron von Munchhausen. The
bootstrap loader is the program that runs on the computer before any
(normal) program can run. Derived terms include reboot, cold boot,
warm boot, soft boot and hard boot. The term also applies to the use
of a compiler to compile itself. The usual process is to write an
interpreter for a language, L, in some other existing language. The
compiler is then written in L and the interpreter is used to run it.
This produces an executable for compiling programs in L from the
source of the compiler in L. This technique is often used to verify
the correctness of a compiler. It was first used in the LISP
community.

1 boot-strap是皮鞋后部的一条小带子或一个小环,手指拉一下它就可以很方便地把鞋子穿起来。1870

2 to pull (oneself) up by (one’s) bootstraps 通常用来比喻不可能完成的任务 1900

3 Why can not a man lift himself by pulling up on his boot-straps 意思扩展到了 通过严格的,自身的努力让自己变得更好 1916

4 执行固定指令序列加载计算机的操作系统 1953

5 词义扩展了操作系统和编译器

也就是在1953年这个词有了计算机上的引导含义

0 0
原创粉丝点击