Sjtuthesis: [ci] 添加 Windows CI

Created on 10 Jan 2018  ·  12Comments  ·  Source: sjtug/SJTUThesis

All 12 comments

@gaocegege 是不是该加一下了,又到了写毕设的季节,不能无视 windows 用户们啊 .w.

我不用,所以我不加

@at15 I'd appreciate it if you could do it :)

@gaocegege I don't use windows for thesis as well :smile:

I will take a look.

为了防止弃坑,遇到的问题都放在这个 issue 里,首先是 TexLive 的安装问题,感觉 https://yihui.name/cn/2017/06/lightweight-texlive/ 更合适

https://superuser.com/questions/518347/equivalent-to-tars-strip-components-1-in-unzip

Fuck,install tl 目录里有一个目录名字是 install-tl-date,date 会变,这个很关键。

DATE=$(unzip -Z1 install-tl.zip | head -n 1 | grep -o '[0-9]\{8\}')

 这样可以不?

I will have a try. 不是很懂 Windows 上的 bash 支持是怎么实现的,起码括号是没的。。可以用 bash -c 这样

差不多可以了,还剩下上面提到的两个硬编码的问题

一个是 install-tl,一个是 texlive 的目录带年份的问题

https://www.appveyor.com/docs/team-setup/

真特么 hack,需要注册新的账号来当做 sjtug 的 CI 账号

Was this page helpful?
0 / 5 - 0 ratings