Skip to content

Commit

Permalink
[desktop] new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
arnnis committed Dec 27, 2019
1 parent 3fb5848 commit ec47cfa
Show file tree
Hide file tree
Showing 38 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion desktop/build.js
@@ -1,19 +1,32 @@
const shell = require('shelljs');
const chalk = require('chalk').default;

try {
if (shell.ls().some(item => item.includes('temp'))) {
console.log(chalk.bgYellow('Removing old temp folder'));
shell.rm('-rf', 'temp');
}

console.log(chalk.bgCyan('Moving necessary files to temp folder...'));
shell.mkdir('temp');
shell.cp('-r', './web/build', './temp/');
console.log(chalk.bgYellow('Removing old dist folder if exists...'));
shell.rm('-rf', './desktop/dist');
shell.cp('-r', './desktop/*', './temp/');
shell.cp('package.json', './temp/');
shell.mkdir('temp/node_modules');
shell.cp('-r', './node_modules/electron*', './temp/node_modules');
shell.cd('temp');

console.log(chalk.bgCyan('Starting desktop pack...'));
shell.exec('electron-builder . -mwl');
console.log(chalk.bgGreen('Desktop build done...'));

console.log(chalk.bgYellow('Removing temp folder...'));
shell.cd('..');
shell.rm('-rf', 'temp');

console.log(chalk.bgGreen('All done'));
} catch (err) {
console.log(err);
console.log(chalk.bgRed(err));
}
Binary file removed desktop/resources/icon.icns
Binary file not shown.
Binary file removed desktop/resources/icon.ico
Binary file not shown.
Binary file added desktop/resources/icons/1024x1024.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/24x24.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/256x256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/48x48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/512x512.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/64x64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons/icon.icns
Binary file not shown.
Binary file added desktop/resources/icons/icon.ico
Binary file not shown.
Binary file removed desktop/resources/icons/mac/icon.icns
Binary file not shown.
Binary file removed desktop/resources/icons/png/1024x1024.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/128x128.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/16x16.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/24x24.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/256x256.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/32x32.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/48x48.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/512x512.png
Binary file not shown.
Binary file removed desktop/resources/icons/png/64x64.png
Binary file not shown.
Binary file removed desktop/resources/icons/win/icon.ico
Binary file not shown.
Binary file added desktop/resources/icons2/icons/mac/icon.icns
Binary file not shown.
Binary file added desktop/resources/icons2/icons/png/1024x1024.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/24x24.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/256x256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/48x48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added desktop/resources/icons2/icons/png/512x512.png
Binary file added desktop/resources/icons2/icons/png/64x64.png
Binary file added desktop/resources/icons2/icons/win/icon.ico
Binary file not shown.
Binary file added icon.png
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"web": "cross-env NODE_ENV=development webpack-dev-server --config ./web/webpack.config.js --color --progress",
"web:build": "cross-env NODE_ENV=production webpack --config ./web/webpack.config.js --color --progress",
"desktop": "cross-env NODE_ENV=development webpack-dev-server --config ./desktop/webpack.config.js --color --progress",
"desktop:build": "yarn web:build && cp -r ./web/build ./desktop/ && node ./desktop/build.js",
"desktop:build": "yarn web:build && node ./desktop/build.js",
"test": "jest",
"lint": "eslint .",
"predeploy": "yarn run web:build",
Expand Down

0 comments on commit ec47cfa

Please sign in to comment.