chore: Refactor build and publish scripts for the desktop application. Replace direct electron-builder calls with a custom script to manage output directory outside of OneDrive/Documents. Update README to reflect new installer location and enhance release directory management with a dedicated module.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Directorio de salida de electron-builder.
|
||||
* Por defecto fuera de Documents/OneDrive para evitar bloqueos de app.asar en Windows.
|
||||
* Override: IPS_DESKTOP_RELEASE_DIR=C:\ruta\absoluta
|
||||
*/
|
||||
import { homedir } from "node:os";
|
||||
import { join, dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
export const projectRoot = join(__dirname, "..");
|
||||
|
||||
export function getReleaseDir() {
|
||||
if (process.env.IPS_DESKTOP_RELEASE_DIR) {
|
||||
return process.env.IPS_DESKTOP_RELEASE_DIR;
|
||||
}
|
||||
const local = process.env.LOCALAPPDATA || join(homedir(), "AppData", "Local");
|
||||
return join(local, "IPSExtractor-desktop-release");
|
||||
}
|
||||
Reference in New Issue
Block a user