Skip to content

Commit 3984d01

Browse files
committed
Use tencent cos
1 parent 87d99bd commit 3984d01

15 files changed

+521
-7798
lines changed

.github/workflows/deploy.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ jobs:
1919
node-version: 12
2020

2121
- name: Install dependencies
22-
run: yarn install --production
22+
run: npm install --production
2323

2424
- name: Build app
25-
run: yarn build
25+
run: npm run build
2626

2727
- name: Deploy
28-
if: success()
2928
uses: crazy-max/ghaction-github-pages@v1
3029
with:
3130
build_dir: dist
@@ -34,12 +33,13 @@ jobs:
3433
env:
3534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3635

37-
- name: Upload to server
38-
uses: wlixcc/SFTP-Deploy-Action@v1.0
36+
- name: Upload to cos
37+
uses: TencentCloud/cos-action@v1
3938
with:
40-
username: ${{ secrets.SFTP_USERNAME }}
41-
server: ${{ secrets.SFTP_SERVER }}
42-
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
43-
local_path: './dist/*'
44-
remote_path: '/var/www/website'
45-
args: '-o ConnectTimeout=5'
39+
secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }}
40+
secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }}
41+
cos_bucket: ${{ secrets.COS_BUCKET }}
42+
cos_region: ${{ secrets.COS_REGION }}
43+
local_path: dist
44+
remote_path: /
45+
clean: true

assets/akko-cloud.png

-11.5 KB
Binary file not shown.

index.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
</head>
2626
<body>
2727
<main>
28-
<a href="i.html" style="display:none"></a>
2928
<header>
3029
<a href="/"><img alt="logo" class="logo" src="assets/logo.png"></a>
3130
</header>
@@ -55,6 +54,7 @@ <h1 data-t="resourcesSystem"></h1>
5554
<li data-t="resourcesSystem3"></li>
5655
<li data-t="resourcesSystem4"></li>
5756
<li data-t="resourcesSystem5"></li>
57+
<li data-t="resourcesSystem6"></li>
5858
</ul>
5959
<a role="button" class="btn btn-primary" data-t="openVersionsList" href="./versions.html"></a>
6060
</div>
@@ -125,11 +125,6 @@ <h1 data-t="contact"></h1>
125125
</ul>
126126
<br>
127127
</div>
128-
<div class="server">
129-
<h1 data-t="serverProvider"></h1>
130-
<a href="https://www.akkocloud.com/" target="_blank"><img alt="AkkoCloud" src="assets/akko-cloud.png"></a>
131-
<p data-t="serverProviderText"></p>
132-
</div>
133128
</section>
134129
<footer>
135130
<div>

langs/en-us.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
"allVersions": "ALL VERSIONS",
99

1010
"resourcesSystem": "Convenient Resource System",
11-
"resourcesSystem1": "One click installation of versiosn, mods, resource-packs and saves.",
11+
"resourcesSystem1": "One click installation of versiosn, mods, resource-packs and saves.",
1212
"resourcesSystem2": "One click installation of vanilla games, Fabric, Forge and Optifine.",
1313
"resourcesSystem3": "One click add Minecraft third-party server.",
14-
"resourcesSystem4": "Update the above resources automatically.",
15-
"resourcesSystem5": "Easily export and manage the above resources.",
14+
"resourcesSystem4": "One click installation of resources of CurseForge.",
15+
"resourcesSystem5": "Update the above resources automatically.",
16+
"resourcesSystem6": "Easily export and manage the above resources.",
1617
"openVersionsList": "View resources list",
1718

1819
"accountSystem": "Advanced Account System",
@@ -47,9 +48,6 @@
4748
"telegramGroup": "Telegram Group",
4849
"clickToEnter": "Click to enter",
4950

50-
"serverProvider": "Server Provider",
51-
"serverProviderText": "Smooth and stable | high frequency CPU | nvme SSD | free domain without port",
52-
5351

5452
"versionsTitle": "PureLauncher | Versions Download",
5553
"releaseVersion": "Release",
@@ -64,6 +62,8 @@
6462
"installSuccess": "Success! Please check the launcher!",
6563
"installFailed": "Failed! Please make sure you have installed PureLauncher!",
6664

65+
"protocolTitle": "PureLauncher | Protocol",
66+
"protocolWrong": "Failed! Wrong protocol JSON! Please confirm the protocol is correct!",
6767

6868
"releaseTitle": "PureLauncher | Downloads",
6969
"32": "x86",
@@ -73,6 +73,8 @@
7373
"pluginsTitle": "PureLauncher | Plugins",
7474
"multiInstances": "MultiInstances",
7575
"install": "INSTALL",
76+
"themeMaker": "THEME MAKER",
77+
"useThisTheme": "USE THIS THEME",
7678
"multiInstancesDesc": "This plugin allows you to run multiple game instances.",
7779
"authlibInjectorDesc": "This plugin allows you to use Authlib-Injector to login.",
7880
"mcBotDesc": "This plugin allows you to create a bot that can chat and record in game.",

langs/zh-cn.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
"resourcesSystem1": "一键安装整合包、模组、资源包和地图",
1212
"resourcesSystem2": "一键安装原版游戏、Fabric、Forge 和 Optifine",
1313
"resourcesSystem3": "一键添加第三方 Minecraft 服务器",
14-
"resourcesSystem4": "自动更新以上资源",
15-
"resourcesSystem5": "轻松导出和管理以上资源",
14+
"resourcesSystem4": "一键安装 CurseForge 上的资源",
15+
"resourcesSystem5": "自动更新以上资源",
16+
"resourcesSystem6": "轻松导出和管理以上资源",
1617
"openVersionsList": "查看资源列表",
1718

1819
"accountSystem": "高级的账户系统",
@@ -63,14 +64,15 @@
6364
"installSuccess": "操作成功! 请查看启动器!",
6465
"installFailed": "操作失败! 请确保已经安装 PureLauncher!",
6566

66-
6767
"releaseTitle": "PureLauncher | 下载",
6868
"32": "32位",
6969
"64": "64位",
7070

7171

7272
"pluginsTitle": "PureLauncher | 插件列表",
7373
"install": "立即安装",
74+
"themeMaker": "制作主题",
75+
"useThisTheme": "使用图中的主题",
7476
"multiInstances": "游戏多开",
7577
"multiInstancesDesc": "这个插件可以让你同时开启多个游戏实例",
7678
"authlibInjectorDesc": "这个插件可以让你使用Authlib-Injector来登陆游戏",

p.html

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head><head>
4+
<meta charset="UTF-8">
5+
<meta name="description" content="PureLauncher 我的世界启动器">
6+
<meta name="keywords" content="PureLauncher,purelauncher,Launcher,启动器,我的世界启动器,我的世界,Minecraft,MC">
7+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
9+
<meta name="renderer" content="webkit">
10+
<meta http-equiv="Cache-Control" content="no-siteapp" />
11+
<meta name="theme-color" content="#181818">
12+
<title data-t="protocolTitle">PureLauncher | Protocol</title>
13+
<!-- <link rel="icon" type="image/png" href="favicon.png"> -->
14+
<meta name="mobile-web-app-capable" content="yes">
15+
<!-- <link rel="icon" sizes="192x192" href="favicon.png"> -->
16+
<meta name="apple-mobile-web-app-capable" content="yes">
17+
<meta name="apple-mobile-web-app-status-bar-style" content="#181818">
18+
<meta name="apple-mobile-web-app-title" content="Unknown Domain">
19+
<!-- <link rel="apple-touch-icon-precomposed" href="favicon.png"> -->
20+
<!-- <meta name="msapplication-TileImage" content="favicon.png"> -->
21+
<meta name="msapplication-TileColor" content="#181818">
22+
<link type="text/css" rel="styleSheet" href="src/main.css" />
23+
<link type="text/css" rel="styleSheet" href="src/install.css" />
24+
</head>
25+
</head>
26+
<body>
27+
<main>
28+
<div class="loading">
29+
<div class='squares'><div></div><div></div><div></div><div></div></div>
30+
<p data-t="loading" id="text"></p>
31+
</div>
32+
</main>
33+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/npo.src.min.js"></script>
34+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fetch.umd.min.js"></script>
35+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
36+
<script src="src/i18n.ts"></script>
37+
<script src="src/protocol.ts"></script>
38+
</body>
39+
</html>

0 commit comments

Comments
 (0)