mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 02:41:02 +00:00
feat: removing documents mapping
This commit is contained in:
@@ -7,7 +7,7 @@ import crypto from "node:crypto";
|
||||
import { GameShop } from "@types";
|
||||
import axios from "axios";
|
||||
import os from "node:os";
|
||||
import { artifactMetadataFileName, backupsPath } from "@main/constants";
|
||||
import { backupsPath } from "@main/constants";
|
||||
import { app } from "electron";
|
||||
import { normalizePath } from "@main/helpers";
|
||||
|
||||
@@ -21,22 +21,7 @@ const bundleBackup = async (shop: GameShop, objectId: string) => {
|
||||
|
||||
await Ludusavi.backupGame(shop, objectId, backupPath);
|
||||
|
||||
const tarLocation = path.join(backupsPath, `${crypto.randomUUID()}.zip`);
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(backupPath, artifactMetadataFileName),
|
||||
JSON.stringify({
|
||||
home: normalizePath(app.getPath("home")),
|
||||
documents: normalizePath(app.getPath("documents")),
|
||||
})
|
||||
);
|
||||
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
home: normalizePath(app.getPath("home")),
|
||||
documents: normalizePath(app.getPath("documents")),
|
||||
})
|
||||
);
|
||||
const tarLocation = path.join(backupsPath, `${crypto.randomUUID()}.tar`);
|
||||
|
||||
await tar.create(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user