Skip to content

Commit

Permalink
add missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt21 committed Sep 18, 2018
1 parent 80bf71a commit 86b8645
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
Binary file added images/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions main.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ if (!fs.existsSync(userDataPath)) {

/* initialize logging */
log.transports.file.level = 'debug';
log.transports.file.appName = (process.platform == 'linux' ? '.particl' : 'Particl');
log.transports.file.appName = (process.platform == 'linux' ? '.Nix' : 'Nix');
log.transports.file.file = log.transports.file
.findLogPath(log.transports.file.appName)
.replace('log.log', 'particl.log');
.replace('log.log', 'Nix.log');

log.debug(`console log level: ${log.transports.console.level}`);
log.debug(`file log level: ${log.transports.file.level}`);
Expand Down Expand Up @@ -200,11 +200,11 @@ function makeTray() {
submenu: [
{
label: 'About ' + app.getName(),
click() { electron.shell.openExternal('https://particl.io/#about'); }
click() { electron.shell.openExternal('https://nixplatform.io/#about'); }
},
{
label: 'Visit Particl.io',
click() { electron.shell.openExternal('https://particl.io'); }
label: 'Visit Nixplatform.io',
click() { electron.shell.openExternal('https://nixplatform.io'); }
},
{
label: 'Visit Electron',
Expand All @@ -223,7 +223,7 @@ function makeTray() {
// }

// Set the tray icon
tray.setToolTip('Particl ' + app.getVersion());
tray.setToolTip('Nix ' + app.getVersion());
tray.setContextMenu(contextMenu)

// Always show window when tray icon clicked
Expand Down
19 changes: 10 additions & 9 deletions modules/clientBinaries/generateVersions.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
var got = require("got");
var fs = require('fs');

var releasesURL = "https://api.github.com/repos/particl/particl-core/releases";
var signaturesURL = "https://api.github.com/repos/particl/gitian.sigs/contents";
var maintainer = "tecnovert";
var releasesURL = "https://github.com/NixPlatform/NixCore/releases";

var signaturesURL = "https://api.github.com/repos/nixplatform/gitian.sigs/contents";
var maintainer = “mattt21”;

/*
* Filters a hash file to find this asset's hash
Expand Down Expand Up @@ -77,7 +78,7 @@ var getAssetDetails = function (asset, hashes, version) {
}

// add .exe extension for windows binaries
var bin = `particld${data.platform === 'win' ? '.exe' : ''}`
var bin = `nixd${data.platform === 'win' ? '.exe' : ''}`
// return asset only if it is fully compliant
return (data.platform && data.arch && data.type ? {
platform: data.platform,
Expand All @@ -88,13 +89,13 @@ var getAssetDetails = function (asset, hashes, version) {
url: asset.browser_download_url,
type: data.type,
sha256: data.sha256,
bin: `particl-${version}/bin/${bin}`
bin: `nix-${version}/bin/${bin}`
},
bin: bin,
commands: {
sanity: {
args: ["-version"],
output: ["Particl Core Daemon", version]
output: ["Nix Core Daemon", version]
}
}
}
Expand Down Expand Up @@ -130,7 +131,7 @@ var getHashesForPlatform = function (platform, path, hashes, promises) {

/*
* Entry point
* get Particl latest release files
* get nix latest release files
*/
got(`${releasesURL}`).then(response => {

Expand Down Expand Up @@ -161,7 +162,7 @@ got(`${releasesURL}`).then(response => {
// prepare JSON object for the output file
var json = {
clients: {
particld: {
nixd: {
version: tag,
platforms: {}
}
Expand All @@ -175,7 +176,7 @@ got(`${releasesURL}`).then(response => {
}
})
// include entries in JSON object
var platforms = json.clients.particld.platforms;
var platforms = json.clients.nixd.platforms;
binaries.forEach(binary => {
// define an empty object for current platform if not already defined
if (!platforms[binary.platform]) {
Expand Down
6 changes: 3 additions & 3 deletions src/environments/environment.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const environment = {
envName: 'dev',
version: require('../../package.json').version,
nixHost: 'localhost',
releasesUrl: 'https://api.github.com/repos/particl/particl-desktop/releases/latest',
nix_MainNet_Port :51735,
nixPort: 51935,
releasesUrl: 'https://api.github.com/repos/NixPlatform/Nix-GUI/releases/latest',
nix_MainNet_Port :6214,
nixPort: 6215,
rpcUserName :'test',
rpcPassword :'test',
};

0 comments on commit 86b8645

Please sign in to comment.