mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Merge pull request #7 from pulsar-edit/api-rebrand
Adding branding info to global API
This commit is contained in:
commit
920eb6556e
@ -3,6 +3,10 @@
|
|||||||
"productName": "Atom",
|
"productName": "Atom",
|
||||||
"version": "1.63.0-dev",
|
"version": "1.63.0-dev",
|
||||||
"description": "A hackable text editor for the 21st Century.",
|
"description": "A hackable text editor for the 21st Century.",
|
||||||
|
"branding": {
|
||||||
|
"id": "pulsar",
|
||||||
|
"properName": "Pulsar"
|
||||||
|
},
|
||||||
"main": "./src/main-process/main.js",
|
"main": "./src/main-process/main.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -46,6 +46,7 @@ const TextEditorRegistry = require('./text-editor-registry');
|
|||||||
const AutoUpdateManager = require('./auto-update-manager');
|
const AutoUpdateManager = require('./auto-update-manager');
|
||||||
const StartupTime = require('./startup-time');
|
const StartupTime = require('./startup-time');
|
||||||
const getReleaseChannel = require('./get-release-channel');
|
const getReleaseChannel = require('./get-release-channel');
|
||||||
|
const packagejson = require("../package.json");
|
||||||
|
|
||||||
const stat = util.promisify(fs.stat);
|
const stat = util.promisify(fs.stat);
|
||||||
|
|
||||||
@ -219,6 +220,11 @@ class AtomEnvironment {
|
|||||||
commands: this.commands,
|
commands: this.commands,
|
||||||
stateStore: this.stateStore
|
stateStore: this.stateStore
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.branding = {
|
||||||
|
id: packagejson.branding.id,
|
||||||
|
properName: packagejson.branding.properName
|
||||||
|
};
|
||||||
|
|
||||||
// Keep instances of HistoryManager in sync
|
// Keep instances of HistoryManager in sync
|
||||||
this.disposables.add(
|
this.disposables.add(
|
||||||
|
Loading…
Reference in New Issue
Block a user