Compare commits
10
Commits
6ee566b1d1
...
1ea58a0077
+2
-1
@@ -54,4 +54,5 @@ WebServer/TestResult.xml
|
|||||||
WebServer/nunit-*.xml
|
WebServer/nunit-*.xml
|
||||||
|
|
||||||
# Release script output
|
# Release script output
|
||||||
Output/
|
Output/
|
||||||
|
Anti Entropy Novel.sln
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
cd .\WebServer
|
|
||||||
dotnet publish -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link -p:EnableCompressionInSingleFile=true -p:PublishReadyToRun=true
|
|
||||||
dotnet publish -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link -p:EnableCompressionInSingleFile=true -p:PublishReadyToRun=true
|
|
||||||
dotnet publish -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link -p:EnableCompressionInSingleFile=true -p:PublishReadyToRun=true
|
|
||||||
cd ..
|
|
||||||
xcopy "$PSScriptRoot\WebServer\bin\Release\net9.0\win-x64\publish" "$PSScriptRoot\Output\Windows\" /Y
|
|
||||||
xcopy "$PSScriptRoot\Game" "$PSScriptRoot\Output\Windows\Game\" /Y /S
|
|
||||||
Compress-Archive "$PSScriptRoot\Output\Windows\" "$PSScriptRoot\Output\Windows.zip" -Force
|
|
||||||
xcopy "$PSScriptRoot\WebServer\bin\Release\net9.0\linux-x64\publish" "$PSScriptRoot\Output\Linux\" /Y
|
|
||||||
xcopy "$PSScriptRoot\Game" "$PSScriptRoot\Output\Linux\Game\" /Y /S
|
|
||||||
Compress-Archive "$PSScriptRoot\Output\Linux\" "$PSScriptRoot\Output\Linux.zip" -Force
|
|
||||||
xcopy "$PSScriptRoot\WebServer\bin\Release\net9.0\osx-x64\publish" "$PSScriptRoot\Output\MacOS\" /Y
|
|
||||||
xcopy "$PSScriptRoot\Game" "$PSScriptRoot\Output\MacOS\Game\" /Y /S
|
|
||||||
Compress-Archive "$PSScriptRoot\Output\MacOS\" "$PSScriptRoot\Output\MacOS.zip" -Force
|
|
||||||
+1
-1
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
<meta property='og:type' content='website' />
|
<meta property='og:type' content='website' />
|
||||||
<meta property='og:image' content='https://www.abyss-lab.app/assets/honkai3rd/banner-bronya.png' />
|
<meta property='og:image' content='https://www.abyss-lab.app/assets/honkai3rd/banner-bronya.png' />
|
||||||
<title>Anti-Entropy Beta - Abyss Lab</title>
|
<title>Anti-Entropy Beta</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<OutputType>Exe</OutputType>
|
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
|
||||||
<RootNamespace>AE</RootNamespace>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.3.0" />
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.8" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Net;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using Microsoft.AspNetCore.Builder;
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using Microsoft.Extensions.FileProviders;
|
|
||||||
|
|
||||||
class Program
|
|
||||||
{
|
|
||||||
static async Task Main()
|
|
||||||
{
|
|
||||||
string url = "http://localhost:80";
|
|
||||||
string game = "";
|
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
||||||
{
|
|
||||||
game = "\\Game\\";
|
|
||||||
}
|
|
||||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
|
||||||
{
|
|
||||||
game = "/Game/";
|
|
||||||
}
|
|
||||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
|
||||||
{
|
|
||||||
game = "/Game/";
|
|
||||||
}
|
|
||||||
string contentRoot = Directory.GetCurrentDirectory() + game;
|
|
||||||
Console.WriteLine(contentRoot);
|
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder();
|
|
||||||
builder.Services.AddDirectoryBrowser();
|
|
||||||
|
|
||||||
var app = builder.Build();
|
|
||||||
|
|
||||||
app.UseDefaultFiles(new DefaultFilesOptions
|
|
||||||
{
|
|
||||||
DefaultFileNames = new[] { "index.html" },
|
|
||||||
FileProvider = new PhysicalFileProvider(contentRoot),
|
|
||||||
});
|
|
||||||
app.UseStaticFiles(new StaticFileOptions
|
|
||||||
{
|
|
||||||
FileProvider = new PhysicalFileProvider(contentRoot),
|
|
||||||
RequestPath = ""
|
|
||||||
});
|
|
||||||
app.UseDirectoryBrowser(new DirectoryBrowserOptions
|
|
||||||
{
|
|
||||||
FileProvider = new PhysicalFileProvider(contentRoot)
|
|
||||||
});
|
|
||||||
|
|
||||||
var serverTask = app.RunAsync(url);
|
|
||||||
|
|
||||||
await Task.Delay(2000);
|
|
||||||
OpenBrowser("http://localhost/");
|
|
||||||
|
|
||||||
await serverTask;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void OpenBrowser(string url)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Process.Start(new ProcessStartInfo
|
|
||||||
{
|
|
||||||
FileName = url,
|
|
||||||
UseShellExecute = true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Console.WriteLine($"Failed to open browser: {ex.Message}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
[Русский](readme_ru.md)
|
||||||
|
## English
|
||||||
|
# Anti Entropy Beta
|
||||||
|
|
||||||
|
Russian translation of Anti Entropy Beta novel by miHoYo.
|
||||||
|
#### Current progress: 0%
|
||||||
|
## How to play
|
||||||
|
|
||||||
|
Go to [ae.retr0volkov.ru](https://ae.retr0volkov.ru)
|
||||||
|
|
||||||
|
If you want, you can clone into repo and host Game folder (as web, not available as file due to CORS)
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you wish to contribute to the translation, message me on telegram [@retr0volkov](https://t.me/retr0volkov) or email me at retr0volkov@gmail.com (expect delays when using email).
|
||||||
|
|
||||||
|
If you want to begin translation on any other language, feel free to copy the project and make any modifications.
|
||||||
|
|
||||||
|
## Credit
|
||||||
|
|
||||||
|
* [miHoYo](https://www.mihoyo.com)
|
||||||
|
* [Abyss lab translators](https://github.com/sakura-knoll/abyss-lab#translation-attributions)
|
||||||
|
## Copyright / License
|
||||||
|
#### Game Data
|
||||||
|
All game images and game data belong to miHoYo Co., Ltd. There is no license I can provide.
|
||||||
|
|
||||||
|
I'm using their assets for educational and research purpose without any permissions from them.
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
[English](readme.md)
|
||||||
|
## Русский
|
||||||
|
# Anti Entropy Beta
|
||||||
|
|
||||||
|
Русский перевод новеллы Anti Entropy Beta, созданной miHoYo.
|
||||||
|
#### Текущий прогресс: 0%
|
||||||
|
## Как установить
|
||||||
|
|
||||||
|
Перейдите на [ae.retr0volkov.ru](https://ae.retr0volkov.ru)
|
||||||
|
|
||||||
|
Если хотите, можно склонировать репозиторий и хостить файлы из папки Game (как веб, нельзя открыть файл из-за CORS)
|
||||||
|
|
||||||
|
## Вклад
|
||||||
|
|
||||||
|
Если вы хотите помочь переводу, напишите мне в телеграме [@retr0volkov](https://t.me/retr0volkov) или на почту retr0volkov@gmail.com (ожидайте задержки ответов).
|
||||||
|
|
||||||
|
Если вы хотите начать перевод на любой другой язык, копируйте проект и модифицируйте как вам угодно
|
||||||
|
|
||||||
|
## Благдоарность
|
||||||
|
|
||||||
|
* [miHoYo](https://www.mihoyo.com)
|
||||||
|
* [Переводчики Abyss lab](https://github.com/sakura-knoll/abyss-lab#translation-attributions)
|
||||||
|
## Авторские права / лицензия
|
||||||
|
#### Данные игры
|
||||||
|
Все игровые изображения и игровые данные принадлежат miHoYo Co., Ltd. Я не могу предоставить лицензию.
|
||||||
|
|
||||||
|
Я использую их ресурсы в образовательных и иследовательских целях без их прямого разрешения.
|
||||||
Reference in New Issue
Block a user