Skip to content

Commit

Permalink
Merge pull request #144 from Andy-K-Sparklight/main
Browse files Browse the repository at this point in the history
release(*): bump core 50 as new av sunset
  • Loading branch information
Andy-K-Sparklight authored Aug 15, 2022
2 parents 20593a5 + 8497486 commit 24077a1
Show file tree
Hide file tree
Showing 43 changed files with 671 additions and 678 deletions.
19 changes: 13 additions & 6 deletions makesh.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
// Inject alicorn.sh for GNU/Linux
// eslint-disable-next-line @typescript-eslint/no-var-requires
const fs = require("fs");
const START_SH = "#!/bin/sh\ncd `dirname $0`\n./Alicorn";
fs.writeFile(
"./out/Alicorn-linux-x64/alicorn.sh",
START_SH,
{ mode: "0777" },
fs.copyFile(
"./resources/build/install.sh",
"./out/Alicorn-linux-x64/install.sh",
() => {
console.log("Shell launcher emitted.");
fs.chmod("./out/Alicorn-linux-x64/install.sh", 0o755, () => {
console.log("Shell installer emitted.");
});
}
);
fs.copyFile(
"./resources/build/icon.png",
"./out/Alicorn-linux-x64/Alicorn.png",
() => {
console.log("Icon emitted.");
}
);
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"appVersion": "Harmony",
"appVersion": "Sunset",
"version": "1.0.0",
"updatorVersion": 49,
"updatorVersion": 50,
"scripts": {
"lc": "yarn lcd",
"df": "yarn dev-full",
Expand Down Expand Up @@ -73,7 +73,6 @@
"copy-to-clipboard": "^3.3.1",
"crypto-js": "^4.1.1",
"fs-extra": "^10.1.0",
"hotkeys-js": "^3.9.4",
"iconv-lite": "^0.6.3",
"is-reachable": "^5.2.1",
"js-base64": "^3.7.2",
Expand All @@ -91,7 +90,7 @@
"sudo-prompt": "^9.2.1",
"throttle-debounce": "^5.0.0",
"toml": "^3.0.0",
"undici": "^5.6.0",
"undici": "^5.8.0",
"uuid": "^8.3.2",
"ws": "^8.8.0"
}
Expand Down
15 changes: 15 additions & 0 deletions resources/build/_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
echo "Installing Alicorn, just a second..."
USERNAME=`whoami`
DESTFILE="/home/$USERNAME/.local/share/applications/alicorn.desktop"
rm -f $DESTFILE
cd `dirname $0`
MYDIR=`pwd`
chmod +x "Alicorn"
for LN in '[Desktop Entry]' 'Type=Application' 'Version=1.0' 'Name=Alicorn' 'Comment=A cute custom Minecraft launcher for everypony!' "Path=$MYDIR" "Exec=$MYDIR/Alicorn" "Icon=$MYDIR/Alicorn.png" 'Terminal=false'
do
echo $LN >> $DESTFILE
done

echo "Installation complete, starting for you..."
./Alicorn
34 changes: 33 additions & 1 deletion resources/shared/defaults/Equish.lang
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ Forge Mods are supported.

Fabric Mods are supported.

# CoreInfo.Introduction.Quilt

Quilt Mods are supported.

# CoreInfo.Introduction.Installer

It's a modpack installer!
Expand Down Expand Up @@ -1014,7 +1018,7 @@ Retrofit (Fabric)

# InstallCore.InstallFabricInstr

@HTMLRetrofit an installed Minecraft core to a Fabric core. Both of then will be available. With this you can play Fabric mods.
@HTMLRetrofit an installed Minecraft core to a Fabric core. Both of them will be available. With this you can play Fabric mods.

# InstallCore.InstallIris

Expand All @@ -1028,6 +1032,18 @@ Install Iris

Install To

# InstallCore.InstallQuilt

Retrofit (Quilt)

# InstallCore.InstallQuiltInstr

@HTMLRetrofit an installed Minecraft core to a Quilt core. Both of them will be available. With this you can play Quilt mods.

# InstallCore.QuiltBaseVersion

Install To

# InstallCore.TargetContainer

Target Container
Expand Down Expand Up @@ -2108,6 +2124,22 @@ Disable Log4j Configuration

Disable Log4j configuration provided by Mojang.

# Options.bosskey.title

Boss Key ^

# Options.bosskey.desc

Set a keyboard shortcut here. When your boss is around, press this to hide Alicorn and quit Minecraft.\n(Format e.g. Alt+B)

# Options.nvidia-prime.title

NVIDIA Prime

# Options.nvidia-prime.desc

Run Minecraft on NVIDIA dGPU.\nIt only works with dual graphics cards when NVIDIA is not the output card.

# CrashReportDisplay.BaseInfo

Base Information
Expand Down
44 changes: 40 additions & 4 deletions resources/shared/defaults/PonyCN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ Alicorn 无法读/写 {Target},请检查此目录的权限,相关操作已

此核心可以加载 Fabric Mod

# CoreInfo.Introduction.Quilt

此核心可以加载 Quilt Mod

# CoreInfo.Introduction.Installer

这不是核心,这是一个整合包安装器
Expand Down Expand Up @@ -1047,6 +1051,10 @@ Pff 正安装 Mod……

安装 Fabric API 失败,许多 Fabric Mod 需要它。\n前往 Pff,输入 fabric-api 重新进行安装。

# InstallCore.Fabric.FabricAPIFailed

安装 Quilt API 失败,许多 Quilt Mod 需要它。\n前往 Pff,输入 qsl 重新进行安装。

# InstallCore.Progress.CouldNotExecute

没能执行安装程序……
Expand Down Expand Up @@ -1089,23 +1097,23 @@ Pff 正安装 Mod……

# InstallCore.InstallMinecraft

添加新的核心
添加核心

# InstallCore.InstallMinecraftInstr

在此安装新的 Minecraft 原版核心,它是一切改装的基础,同时可以直接游玩。\n原版模组(数据包、资源包、地图等)只需要安装原版核心。

# InstallCore.InstallForge

改装已有核心(Forge)
改装核心(Forge)

# InstallCore.InstallForgeInstr

@HTML为已有的 Minecraft 核心进行改装并安装 Forge,Forge Mod 需要进行此改装后才可用。\n<span style="color:#ff8400;">注意:你必须安装了对应版本的 Minecraft 核心才可以进行改装!</span>\n\n<b>注意:</b>有些版本(例如 1.7.10)的 Forge 安装<b>不能使用</b> MCBBS 或 BMCLAPI 镜像,它们的文件尚未更新,直接安装将<b>引发错误</b>。\n

# InstallCore.InstallFabric

改装已有核心(Fabric)
改装核心(Fabric)

# InstallCore.InstallFabricInstr

Expand All @@ -1123,6 +1131,18 @@ Pff 正安装 Mod……

安装到此 Fabric 上

# InstallCore.InstallQuilt

改装核心(Quilt)

# InstallCore.InstallQuiltInstr

@HTML为已有的 Minecraft 核心进行改装并安装 Quilt,它可以支持部分 Fabric Mod 和 Forge Mod。\n<span style="color:#ff8400;">注意:你必须安装了对应版本的 Minecraft 核心才可以进行改装!</span>\n<span style="color:#ff8400;">Quilt 尚在开发中,请注意可能存在的风险及漏洞!</span>

# InstallCore.QuiltBaseVersion

目标 Minecraft 版本号

# InstallCore.TargetContainer

目标容器
Expand Down Expand Up @@ -2203,6 +2223,22 @@ Mod 动态加载

不使用 Mojang 提供的 Log4j 配置文件以在启动疑难解答中获得更清晰的日志 - 副作用是输出到文件的日志会很混乱

# Options.bosskey.title

老板键 ^

# Options.bosskey.desc

我们一直在努力为每个人争取正当、公平的玩游戏的权利,不受任何监管或制约。\n尽管如此,仍然有些人听不进去,所以这是留给你的小礼物~\n在此设置一个快捷键,此后按下它可随时隐藏 Alicorn,终止 Minecraft。\n(快捷键格式类似 Ctrl+B+S 或者 F6)

# Options.nvidia-prime.title

启用 NVIDIA Prime

# Options.nvidia-prime.desc

在主要显卡上运行 Minecraft。\n仅适用于双显卡计算机,且当前输出显卡不是 NVIDIA 显卡。

# CrashReportDisplay.BaseInfo

基本信息
Expand Down Expand Up @@ -3408,7 +3444,7 @@ END

# Instruction.InstallCore.1

使用 <添加新的核心> 来安装新的 Minecraft 原版核心。@5.40
使用 <添加核心> 来安装新的 Minecraft 原版核心。@5.40

# Instruction.InstallCore.2

Expand Down
40 changes: 36 additions & 4 deletions resources/shared/defaults/PonyTW.lang
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ Alicorn 無法讀/寫 {Target},請檢查此目錄的權限,相關操作已

此核心可以加載 Fabric Mod

# CoreInfo.Introduction.Quilt

此核心可以加載 Quilt Mod

# CoreInfo.Introduction.Installer

這不是核心,這是一個整合包安裝器
Expand Down Expand Up @@ -1089,23 +1093,23 @@ Pff 正安裝 Mod……

# InstallCore.InstallMinecraft

添加新的核心
添加核心

# InstallCore.InstallMinecraftInstr

在此安裝新的 Minecraft 原版核心,它是一切改裝的基礎,同時可以直接遊玩。\n原版模組(數據包、資源包、地圖等)只需要安裝原版核心。

# InstallCore.InstallForge

改裝已有核心(Forge)
改裝核心(Forge)

# InstallCore.InstallForgeInstr

@HTML為已有的 Minecraft 核心進行改裝並安裝 Forge,Forge Mod 需要進行此改裝后才可用。\n<span style="color:#ff8400;">注意:你必須安裝了對應版本的 Minecraft 核心才可以進行改裝!</span>\n\n<b>注意:</b>有些版本(例如 1.7.10)的 Forge 安裝<b>不能使用</b> MCBBS 或 BMCLAPI 鏡像,它們的文件尚未更新,直接安裝將<b>引發錯誤</b>。\n

# InstallCore.InstallFabric

改裝已有核心(Fabric)
改裝核心(Fabric)

# InstallCore.InstallFabricInstr

Expand All @@ -1123,6 +1127,18 @@ Pff 正安裝 Mod……

安裝到此 Fabric 上

# InstallCore.InstallQuilt

改裝核心(Quilt)

# InstallCore.InstallQuiltInstr

@HTML為已有的 Minecraft 核心進行改裝並安裝 Quilt,它可以支持部分 Fabric Mod 和 Forge Mod。 \n<span style="color:#ff8400;">注意:你必須安裝了對應版本的 Minecraft 核心才可以進行改裝! </span>\n<span style="color:#ff8400;">Quilt 尚在開發中,請注意可能存在的風險及漏洞! </span>

# InstallCore.QuiltBaseVersion

目標 Minecraft 版本號

# InstallCore.TargetContainer

目標容器
Expand Down Expand Up @@ -2203,6 +2219,22 @@ Mod 動態加載

不使用 Mojang 提供的 Log4j 配置文件以在啟動疑難解答中獲得更清晰的日誌 - 副作用是輸出到文件的日誌會很混亂

# Options.bosskey.title

老闆鍵 ^

# Options.bosskey.desc

我們一直在努力為每個人爭取正當、公平的玩遊戲的權利,不受任何監管或製約。 \n儘管如此,仍然有些人聽不進去,所以這是留給你的小禮物~\n在此設置一個快捷鍵,此後按下它可隨時隱藏 Alicorn,終止 Minecraft。 \n(快捷鍵格式類似 Ctrl+B+S 或者 F6)

# Options.nvidia-prime.title

啟用 NVIDIA Prime

# Options.nvidia-prime.desc

在主要顯卡上運行 Minecraft。 \n僅適用於雙顯卡計算機,且當前輸出顯卡不是 NVIDIA 顯卡。

# CrashReportDisplay.BaseInfo

基本信息
Expand Down Expand Up @@ -3408,7 +3440,7 @@ END

# Instruction.InstallCore.1

使用 <添加新的核心> 來安裝新的 Minecraft 原版核心。@5.40
使用 <添加核心> 來安裝新的 Minecraft 原版核心。@5.40

# Instruction.InstallCore.2

Expand Down
4 changes: 3 additions & 1 deletion resources/shared/defaults/alicorn.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@
"pff.upgrade-mode": "Override",
"cx.shared-root": "",
"interactive.cadance": false,
"interactive.boticorn": false
"interactive.boticorn": false,
"bosskey": "",
"nvidia-prime": true
}
1 change: 1 addition & 0 deletions resources/shared/img/Quilt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 24077a1

Please sign in to comment.