30 Star 207 Fork 29

快编程 / axe.store

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test_cask.gua 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
dudu_axe 提交于 2022-06-22 20:10 . axe.store 2.0.0
con importCask = import("cask")
con importUtil = import('util')
con ensure = importUtil.ensure
con testRedirectedUrl = function() {
var i = 'https://d1.music.126.net/dmusic/obj/w5zCg8OCw6fCn2vDicOl/680685466/242a/20191112165731/NeteaseMusic_2.3.2_832_web.dmg'
var a = importCask.redirectedUrl(i)
var e = 'https://d1.music.126.net/dmusic/obj/w5zCg8OCw6fCn2vDicOl/680685466/242a/20191112165731/NeteaseMusic_2.3.2_832_web.dmg'
ensure(a == e, a)
}
con testSuffixOfFile = function() {
var i = '/abc/efg/aaa.exe'
var a = importCask.suffixOfFile(i)
var e = '.exe'
ensure(a == e, a)
i = '/abc/efg/aaa.txt?abc=123'
a = importCask.suffixOfFile(i)
e = '.txt'
ensure(a == e, a)
}
con testDmg = function() {
importCask.installDmg('qqmusic', 'https://dldir1.qq.com/music/clntupate/mac/QQMusicMac_Mgr.dmg')
}
con testDmgPkg = function() {
importCask.installDmg('teamviewer', 'https://download.teamviewer.com/download/TeamViewer.dmg')
}
con testZip = function() {
importCask.installZip('1clipboard', 'http://1clipboard.io/download/darwin/0.1.8/1Clipboard.zip')
}
con testPkg = function() {
importCask.installPkg('qtspim', 'https://downloads.sourceforge.net/spimsimulator/QtSpim_9.1.21_mac.pkg')
}
con testTar = function() {
var tarBz2 = 'https://downloads.sourceforge.net/freecol/freecol-0.11.6-mac.tar.bz2'
importCask.installTar('freecol', tarBz2)
var tarGz = 'https://downloads.sourceforge.net/camprocessor/CAMEd-3.2.2-macosx-cocoa-x86_64.tar.gz'
importCask.installTar('camed', tarGz)
}
con tests = function() {
importCask.prepare()
testTar()
}
tests()
1
https://gitee.com/kuaibiancheng/store.git
git@gitee.com:kuaibiancheng/store.git
kuaibiancheng
store
axe.store
master

搜索帮助