feat: saving files and folders when updating modpaks

This commit is contained in:
2025-07-07 04:58:57 +05:00
parent 76917e3f90
commit 7eaf7a7610
3 changed files with 62 additions and 0 deletions

View File

@ -23,6 +23,13 @@ const launchOptions = {
baseVersion: '1.21.4',
serverIp: 'popa-popa.ru',
fabricVersion: 'fabric0.16.14',
preserveFiles: [
'options.txt',
'screenshots',
'schematics',
'syncmatics',
'saves',
],
};
const AuthCheck = ({ children }: { children: ReactNode }) => {

View File

@ -33,6 +33,7 @@ interface LaunchPageProps {
baseVersion: string;
serverIp: string;
fabricVersion: string;
preserveFiles: string[];
};
}
@ -115,6 +116,7 @@ const LaunchPage = ({ launchOptions }: LaunchPageProps) => {
apiReleaseUrl: launchOptions.apiReleaseUrl,
versionFileName: launchOptions.versionFileName,
packName: launchOptions.packName,
preserveFiles: launchOptions.preserveFiles,
};
// Передаем опции для скачивания