Compare commits
No commits in common. "3570582c6b5cdd5ee82bd13ee3f2e3f456f1d702" and "705e47a1b87ce5f5507e1d27864c803f2f529d49" have entirely different histories.
3570582c6b
...
705e47a1b8
@ -224,11 +224,6 @@ function downloadUpdateFiles(osuPath, updateFiles) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
if (fs.existsSync(path.join(osuPath, fileName))) {
|
|
||||||
await fs.promises.rm(path.join(osuPath, fileName), {
|
|
||||||
force: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
await fs.promises.writeFile(
|
await fs.promises.writeFile(
|
||||||
path.join(osuPath, fileName),
|
path.join(osuPath, fileName),
|
||||||
axiosDownloadWithProgress.data,
|
axiosDownloadWithProgress.data,
|
||||||
@ -303,11 +298,6 @@ function downloadPatcherUpdates(osuPath, patcherUpdates) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (fs.existsSync(path.join(osuPath, "EZPPLauncher", fileName))) {
|
|
||||||
await fs.promises.rm(path.join(osuPath, "EZPPLauncher", fileName), {
|
|
||||||
force: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
await fs.promises.writeFile(
|
await fs.promises.writeFile(
|
||||||
path.join(osuPath, "EZPPLauncher", fileName),
|
path.join(osuPath, "EZPPLauncher", fileName),
|
||||||
axiosDownloadWithProgress.data,
|
axiosDownloadWithProgress.data,
|
||||||
@ -372,12 +362,6 @@ function downloadUIFiles(osuPath, uiFiles) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
if (fs.existsSync(path.join(osuPath, "EZPPLauncher", fileName))) {
|
|
||||||
await fs.promises.rm(path.join(osuPath, "EZPPLauncher", fileName), {
|
|
||||||
force: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
await fs.promises.writeFile(
|
await fs.promises.writeFile(
|
||||||
path.join(osuPath, "EZPPLauncher", fileName),
|
path.join(osuPath, "EZPPLauncher", fileName),
|
||||||
axiosDownloadWithProgress.data,
|
axiosDownloadWithProgress.data,
|
||||||
|
6
main.js
6
main.js
@ -361,7 +361,7 @@ function registerIPCPipes() {
|
|||||||
mainWindow.webContents.send("ezpplauncher:alert", {
|
mainWindow.webContents.send("ezpplauncher:alert", {
|
||||||
type: "error",
|
type: "error",
|
||||||
message:
|
message:
|
||||||
`Failed to download/replace ${filename}!\nMaybe try to restart EZPPLauncher.`,
|
`Failed to download/replace ${filename}!\nMaybe try to rerun the Launcher as Admin.`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
uiDownloader.eventEmitter.on("data", (data) => {
|
uiDownloader.eventEmitter.on("data", (data) => {
|
||||||
@ -392,7 +392,7 @@ function registerIPCPipes() {
|
|||||||
mainWindow.webContents.send("ezpplauncher:alert", {
|
mainWindow.webContents.send("ezpplauncher:alert", {
|
||||||
type: "error",
|
type: "error",
|
||||||
message:
|
message:
|
||||||
`Failed to download/replace ${filename}!\nMaybe try to restart EZPPLauncher.`,
|
`Failed to download/replace ${filename}!\nMaybe try to rerun the Launcher as Admin.`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
updateDownloader.eventEmitter.on("data", (data) => {
|
updateDownloader.eventEmitter.on("data", (data) => {
|
||||||
@ -439,7 +439,7 @@ function registerIPCPipes() {
|
|||||||
mainWindow.webContents.send("ezpplauncher:alert", {
|
mainWindow.webContents.send("ezpplauncher:alert", {
|
||||||
type: "error",
|
type: "error",
|
||||||
message:
|
message:
|
||||||
`Failed to download/replace ${filename}!\nMaybe try to restart EZPPLauncher.`,
|
`Failed to download/replace ${filename}!\nMaybe try to rerun the Launcher as Admin.`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
patcherDownloader.eventEmitter.on("data", (data) => {
|
patcherDownloader.eventEmitter.on("data", (data) => {
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
"electron/**/*"
|
"electron/**/*"
|
||||||
],
|
],
|
||||||
"win": {
|
"win": {
|
||||||
|
"requestedExecutionLevel": "requireAdministrator",
|
||||||
"target": [
|
"target": [
|
||||||
"portable"
|
"portable"
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user