diff --git a/electron/installer.nsh b/electron/installer.nsh new file mode 100644 index 0000000..b23009d --- /dev/null +++ b/electron/installer.nsh @@ -0,0 +1,8 @@ +!macro customUnInstall +MessageBox MB_YESNO "Do you want to clear the local data?" IDYES true IDNO false +true: + DeleteRegKey HKCU "SOFTWARE\Decentraland" + Goto next +false: +next: +!macroend \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a1bd019..a82519a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@dcl/explorer-desktop-launcher", - "version": "0.1.10", + "name": "explorer-desktop-launcher", + "version": "0.1.29", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@dcl/explorer-desktop-launcher", - "version": "0.1.10", + "name": "explorer-desktop-launcher", + "version": "0.1.29", "hasInstallScript": true, "dependencies": { "axios": "^0.21.4", diff --git a/package.json b/package.json index a80902b..d1ed860 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "explorer-desktop-launcher", - "version": "0.1.29", + "version": "0.1.30", "author": "decentraland", "description": "Decentraland Desktop Launcher", "homepage": ".", @@ -60,7 +60,9 @@ "target": [ "nsis" ], - "signingHashAlgorithms": [ "sha256" ], + "signingHashAlgorithms": [ + "sha256" + ], "rfc3161TimeStampServer": "http://ts.ssl.com", "timeStampServer": "http://ts.ssl.com" }, @@ -71,7 +73,8 @@ "installerIcon": "public/installer-icon.ico", "allowToChangeInstallationDirectory": true, "deleteAppDataOnUninstall": true, - "perMachine": true + "perMachine": true, + "include": "electron/installer.nsh" }, "linux": { "icon": "public/app-icon.png", @@ -111,4 +114,4 @@ "last 1 safari version" ] } -} +} \ No newline at end of file