Skip to content

Commit

Permalink
Uninstaller application #1041
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhirverma committed Apr 5, 2018
1 parent 7d5fe4f commit 533a2db
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 93 deletions.
15 changes: 15 additions & 0 deletions uninstall/.angular-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "uninstall"
},
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"defaults": {
"styleExt": "css",
"component": {}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions uninstall/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Uninstall
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions uninstaller/gulpfile.ts → uninstall/gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'use strict';
// import gulp from 'gulp';

var gulp = require('gulp'),
fs = require('fs-extra'),
babel = require('gulp-babel'),
runSequence = require('run-sequence'),
request = require('request'),
del = require('del'),
exec = require('child_process').exec,
pjson = require('./package.json'),
Expand All @@ -13,6 +16,7 @@ var gulp = require('gulp'),
symlink = require('gulp-symlink'),
common = require('./gulp-tasks/common'),
config = require('./gulp-tasks/config'),
yargs = require('yargs');



Expand Down
File renamed without changes.
25 changes: 0 additions & 25 deletions uninstaller/main/index.ts → uninstall/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ ipcMain.on('crash', function(event, arg) {
process.crash(arg);
});

// Rebroadcasts installComplete event from Renderer back to Renderer.
// Bit of a hack, but it enables async messaging in UI.
ipcMain.on('installComplete', (event, arg) => {
event.sender.send('installComplete', arg);
});

ipcMain.on('downloadingComplete', (event, arg) => {
event.sender.send('downloadingComplete', arg);
});

ipcMain.on('checkComplete', (event, arg) => {
event.sender.send('checkComplete', arg);
});

// Quit when all windows are closed.
app.on('window-all-closed', function() {
app.quit();
Expand All @@ -48,23 +34,12 @@ app.on('ready', function() {
// Load the index.html of the app
mainWindow.loadURL(`file://${baseLocation}/../browser/index.html`);

// only for windows where 7zip pass location where self extracting archive
// was unpacked
if (process.platform === 'win32') {
mainWindow.bundleTempFolder = process.argv.length > 1 ? process.argv[1].replace(/^--/, '') : undefined;
}

mainWindow.skipInstall = process.argv.filter(name => name == 'skipInstall').length == 1;

mainWindow.once('ready-to-show', () => {
mainWindow.show();
});

// Emitted when the window is closed.
mainWindow.on('closed', function() {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null;
});

Expand Down
8 changes: 0 additions & 8 deletions uninstaller/package.json → uninstall/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@
"version": "2.3.0-GA",
"description": "Red Hat Development Suite Installer",
"main": "main/index.js",
"repository": {
"type": "git",
"url": "https://github.com/redhat-developer-tooling/developer-platform-install.git"
},
"author": "Red Hat Developer Tooling Group",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/redhat-developer-tooling/developer-platform-install/issues"
},
"homepage": "https://github.com/redhat-developer-tooling/developer-platform-install#readme",
"scripts": {
"start": "./node_modules/.bin/gulp",
"update-deps": "node_modules/.bin/ncu --upgrade --loglevel verbose --packageFile package.json && npm update"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
60 changes: 0 additions & 60 deletions uninstaller/.angular-cli.json

This file was deleted.

Empty file removed uninstaller/README.md
Empty file.

0 comments on commit 533a2db

Please sign in to comment.