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

[Iceworks]release-2.20.0 #1876

Merged
merged 35 commits into from May 16, 2019
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a7c0fe9
fix: logger 引用出错
alvinhui Apr 28, 2019
1050b7c
fix: 对象引用错误
alvinhui Apr 29, 2019
4b86a52
fix: import logger
alvinhui Apr 29, 2019
face590
docs: 描述环境依赖和发布过程。
alvinhui May 1, 2019
d765637
chore: 目录说明
alvinhui May 1, 2019
e22ecfc
refactor: 重新生成 yarn.lock 文件,使用 registry.npm.taobao.org (#1878)
alvinhui May 5, 2019
30bab89
fix: 兼容物料源为空的场景 (#1879)
alvinhui May 5, 2019
922e5a2
fix: compatibility code
chenbin92 May 6, 2019
d2a1711
chore: fix renderer lint
chenbin92 May 6, 2019
afa6f50
chore: lint config
chenbin92 May 6, 2019
85e7ebf
Merge pull request #1887 from alibaba/fix-eslint
alvinhui May 6, 2019
5fb57ba
Merge branch 'iceworks/release-2.20.0' into fix-iceworks-bug
chenbin92 May 6, 2019
f382aca
Merge pull request #1886 from alibaba/fix-iceworks-bug
alvinhui May 6, 2019
be6dd60
refactor: 升级 electron 到 4.x (#1889)
alvinhui May 7, 2019
4517917
chore: 打印下载源信息
alvinhui May 8, 2019
ec4d3c4
feat: 输出 npm 路径信息方便进行 debug
alvinhui May 8, 2019
904636d
fix: 修复 env.PATH 生成逻辑
alvinhui May 9, 2019
14520ea
chore: 删除测试代码
alvinhui May 9, 2019
e924714
refactor: remove nrm
alvinhui May 9, 2019
2afc541
fix: env.PATH
alvinhui May 9, 2019
d14415c
Merge pull request #1904 from alibaba/iceworks/fix-install
alvinhui May 9, 2019
5b7708b
fix: Security issues of windows (#1914)
alvinhui May 10, 2019
beee4c5
chore: update version
chenbin92 May 13, 2019
24a1898
chore: lint
alvinhui May 13, 2019
1dc80b5
chore: lint
alvinhui May 13, 2019
9bc0b7f
chore: roll back Session (#1923)
alvinhui May 13, 2019
2e3a861
chore: update node engines
chenbin92 May 13, 2019
22e508b
Merge pull request #1925 from alibaba/chore-update-node-engines
alvinhui May 13, 2019
1aa92f3
chore: add changelog
chenbin92 May 13, 2019
b3c0520
Merge branch 'iceworks/release-2.20.0' of github.com:alibaba/ice into…
chenbin92 May 13, 2019
54f7f4f
fix: User Behavior Data Acquisition (#1927)
alvinhui May 13, 2019
e26de41
fix: 自定义物料文档链接 (#1937)
imsobear May 15, 2019
2a5ee55
fix: update tarball url (#1940)
chenbin92 May 15, 2019
7b3b828
chore: lint
alvinhui May 15, 2019
f8433e2
chore: intro for log
alvinhui May 15, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

docs: 描述环境依赖和发布过程。

  • Loading branch information
alvinhui committed May 1, 2019
commit face590de44ecfd43904540df2313a908fcf7ffc
@@ -11,38 +11,40 @@
|- gulp etc. # 开发辅助工具等,publish 阶段构建完成后可以 remove 掉
```

## 开发调试
## 环境准备

保证 Node.js 版本 >= 8.10.0 && < 9 的版本
- [安装 Node](https://nodejs.org/en/download/);
- [安装 Yarn](https://yarnpkg.com/zh-Hant/docs/install);
- 安装项目依赖:`yarn install`
- [安装 node-pty 依赖](https://www.npmjs.com/package/node-pty#dependencies)。

```
yarn install
## 开发调试

```bash
yarn dev
yarn start
```

## 打包
## 打包发布

根据当前操作系统打包对应平台的软件,目前支持 `darwin` `win32 x64`

```
yarn run sync-db
yarn run build
yarn run dist
```
- 前置准备:
- macOS:安装开发者证书
- 本地验证:
- 参考开发调试章节,进行启动调试服务,观察是否启动成功,控制台有无报错;
- 如遇 `node-pty failed to load` 则执行 `yarn rebuild-node-pty` 后重启调试。
- 更新版本号及日志:
- 更改 /app 文件夹下 package.json 的版本号;
- 编写 /changelog 文件夹下的 版本号.json 和 changelog.json 。
- 执行构建,生成安装包:
- 同步物料:`yarn sync-db`
- 打包前端资源:`yarn build`
- 打包 electron 应用:`yarn dist`
- 将安装包上传到 oss:`yarn upload`
- 确认所有平台的安装包都上传到 oss 后,在任意一平台下进行发布:
- `yarn updates`:将生成的 updates.js 和 updates.json ;
- `yarn upload-log`:将版本信息和日志文件更新到 oss。

> **注意** Mac 打包需要有对应的的开发者证书(否则发布后的软件无法正常更新)证书由管理员管理。
## 发布

```
yarn run upload
```

> **注意** 上传过程中需要输入 OSS 的 Access Key Secret。
> 操作需分别在对应系统中执行。
## 更新官网的下载地址

1. 执行 `yarn run updates`
2. 将生成的 `updates.json` 上传到 oss 根目录。
> **注意** 上传过程中需要输入 OSS 的 Access Key Secret。
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.