Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/Apisium/PureLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Mar 25, 2020
2 parents 4225693 + db4f335 commit 277f111
Show file tree
Hide file tree
Showing 25 changed files with 489 additions and 241 deletions.
9 changes: 0 additions & 9 deletions .github/actions/upload-manifest/action.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/actions/upload-manifest/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/actions/upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { createHash } = require('crypto')
const { data } = await octokit.repos.getReleaseByTag({ ...github.context.repo, tag })
core.info('Files: ' + JSON.stringify(files))

const json = JSON.parse(data.body || '{}')
const json = JSON.parse(data.body || `{"version":"${tag}"}`)
core.info('Reading files...')
const buffers = await Promise.all(files.map(it => fs.readFile(it)))
core.info('Read files!')
Expand All @@ -34,7 +34,7 @@ const { createHash } = require('crypto')
core.info('Uploaded files!')

core.info('Uploading hash...')
await octokit.repos.updateRelease({ ...github.context.repo, body: JSON.stringify(json, null, 2), release_id: data.id }) // eslint-disable-line
await octokit.repos.updateRelease({ ...github.context.repo, body: JSON.stringify(json), release_id: data.id }) // eslint-disable-line
core.info('Hash uploaded!')
})().catch(e => {
core.setFailed(e.stack)
Expand Down
37 changes: 26 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,33 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
files: release/PureLauncher.tar.gz release/PureLauncher.deb release/PureLauncher.rpm

- name: Upload manifest
uses: ./.github/actions/upload-manifest
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull_release:
runs-on: self-hosted
needs: build_linux

# - name: Notify AzurePipeline
# uses: Azure/pipelines@v1
# with:
# azure-devops-project-url: 'https://dev.azure.com/ShirasawaSama/PureLauncher'
# azure-pipeline-name: 'Apisium.PureLauncher'
# azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
- name: Notify AzurePipeline
steps:
- name: Pull files
run: (wget -qO /dev/null 1.1.1.1 || exit -1) && (curl https://raw.githubusercontent.com/Apisium/PureLauncher/master/scripts/sync-release.sh | bash)
env:
HTTP_PROXY: http://127.0.0.1:1080
HTTPS_PROXY: http://127.0.0.1:1080
REF: ${{ github.ref }}

upload_manifest:
runs-on: ubuntu-latest
needs: pull_release

steps:
- name: Fetch manifest
run: curl -q "https://api.github.com/repos/Apisium/PureLauncher/releases/tags/$(echo ${{ github.ref }} | sed -e "s#refs/tags/\(.*\)#\1#g")" | jq -r '.body' > latestManifest.json

- name: Upload manifest
# uses: bacongobbler/[email protected]
# with:
# source_dir: .
# container_name: pure_launcher
# connection_string: ${{ secrets.CONNECTION_STRING }}
# extra_args: '--pattern latestManifest.json'
uses: azure/CLI@v1
with:
azcliversion: 2.0.72
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/translation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: release

on: [pull_request]
on:
pull_request:
branches:
- master
paths:
- 'langs/*.json'

jobs:
lint:
Expand Down
13 changes: 5 additions & 8 deletions lang/zh-cn.json → langs/zh-cn.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$LanguageName$": "简体中文",
"§7Powered by §e§lPureLauncher §r§o({0})": "§7由 §e§lPureLauncher §7§o({0}) §7强力驱动",
"§7Powered by §e§lPureLauncher §r§o({0})§r": "§7由 §e§lPureLauncher §7§o({0}) §7强力驱动§r",
"Home": "主页",
"Manager": "管理",
"Settings": "设置",
Expand Down Expand Up @@ -32,14 +32,12 @@
"Worlds": "地图",
"world": "地图",
"Clear": "清理已完成项",
"Error:": "发生错误:",
"Speed": "下载速度",
"Loading...": "加载中...",
"Launching...": "启动中...",
"Downloading...": "下载中...",
"Download": "下载文件",
"Preparing...": "准备中...",
"Saving...": "保存中...",
"Launched": "游戏运行中",
"Fail to launch": "启动失败",
"No such version:": "没有这个版本:",
Expand All @@ -52,6 +50,7 @@
"PureLauncher's built-in plugin": "PureLauncher 的内置插件.",
"News:": "信息:",
"OK": "确认",
"HOW TO INSTALL": "如何安装",
"Successfully installed resources!": "资源安装成功!",
"Failed to install resources": "资源安装失败",
"Hash is different: {0} -> {1}": "哈希值不相同: {0} -> {1}",
Expand Down Expand Up @@ -101,9 +100,10 @@
"File drag detected, release to install.": "检测到文件拖入,释放后即可安装",
"Illegal resource type!": "错误的资源类型!",
"Do you want to export MODS and resource packs?": "是否要导出模组和材质包?",
"No resources found!": "错误的资源类型!",
"It has been detected that the file type dragged in is {0}. Do you want to install it?":
"检测到拖入的文件类型为{0},请问是否需要安装?",
"The current game version is not installed by PureLauncher, so the export may be incomplete!":
"当前游戏版本并不是由PureLauncher安装的,因此可能会导致导出不完整!",
"Received the request to launch the game. Do you want to launch the game": "收到启动游戏请求,是否要启动游戏",
"Aero is not enabled in the current system, resulting in abnormal GUI!": "当前系统没有启用Aero, 导致界面显示异常!",
"The game launched successfully, but the game has exited abnormally. Game crash is not a problem of PureLauncher, but may be caused by incompatible mods. So please DO NOT report this log to PureLauncher!":
Expand Down Expand Up @@ -173,18 +173,15 @@
"Currently, the game is launching. Please restart manually later to install the plugins!": "当前游戏启动中,请稍后手动重启启动器以进行插件安装!",
"The plugin cannot be uninstalled because it is dependent on other plugins!": "当前插件由于被其他插件依赖而无法卸载!",

"finished": "已完成",
"canceled": "已取消",
"error": "发生错误",
"Error": "发生错误",
"CANCEL": "取消",
"Cancel": "取消",
"SAVE": "保存",
"ADD": "添加",
"Export": "导出",
"Disable": "禁用",
"HIDE": "隐藏",

"Open official website": "打开官网",
"Recent play": "快速启动",

"Detailed List": "详细列表",
Expand Down
Loading

0 comments on commit 277f111

Please sign in to comment.