Skip to content

Commit

Permalink
Update product name and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kræn Hansen committed May 11, 2020
1 parent 5531bbf commit 726281d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "realm-studio",
"productName": "Realm Studio",
"version": "3.10.0",
"description": "A tool for everything Realm!",
"productName": "MongoDB Realm Studio",
"version": "10.0.0-mongodb.0",
"description": "A tool for everything MongoDB Realm!",
"author": {
"name": "Realm Inc.",
"name": "Realm",
"email": "info@realm.io",
"url": "https://realm.io"
},
"repository": "https://github.com/realm/realm-studio",
"license": "Apache-2.0",
"main": "./build/main.bundle.js",
"build": {
"appId": "io.realm.realm-studio",
"appId": "com.mongodb.realm-studio",
"directories": {
"buildResources": "./resources"
},
Expand Down
12 changes: 6 additions & 6 deletions src/testing/post-packaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function pruneAutoUpdaterCache() {
function changeS3Endpoint(temporaryMacPath: string, serverUrl: string) {
const appUpdateYmlPath = path.resolve(
temporaryMacPath,
'Realm Studio.app/Contents/Resources/app-update.yml',
'MongoDB Realm Studio.app/Contents/Resources/app-update.yml',
);
const appUpdateYml = fs.readFileSync(appUpdateYmlPath, { encoding: 'utf8' });
const lines = appUpdateYml.split('\n');
Expand Down Expand Up @@ -118,7 +118,7 @@ describe('Realm Studio packaged', () => {
mockedS3 = await mockedS3Server.createServer();
// Determine the URL of the mocked S3 server
const mockedS3Url = mockedS3Server.getServerUrl(mockedS3);
// Build a mocked version of Realm Studio, which we'll attempt an auto-update to
// Build a mocked version of MongoDB Realm Studio, which we'll attempt an auto-update to
buildMockedRealmStudio();
// Copy the current dist/mac folder to a different location to prevent the auto updater
// from overriding the current dist/mac folder.
Expand All @@ -127,7 +127,7 @@ describe('Realm Studio packaged', () => {
fs.copySync(originalMacPath, temporaryMacPath);
// Package the app with the mocked server URL
changeS3Endpoint(temporaryMacPath, mockedS3Url);
// Remove any cached version of the mocked Realm Studio
// Remove any cached version of the mocked MongoDB Realm Studio
pruneAutoUpdaterCache();
});

Expand All @@ -151,7 +151,7 @@ describe('Realm Studio packaged', () => {
const appPath = path.resolve(
distPath,
temporaryMacPath,
'Realm Studio.app/Contents/MacOS/Realm Studio',
'MongoDB Realm Studio.app/Contents/MacOS/Realm Studio',
);
// Start the app
appProcess = cp.spawn(appPath, {
Expand All @@ -170,7 +170,7 @@ describe('Realm Studio packaged', () => {
if (code !== 0) {
reject(
new Error(
`Realm Studio closed with unexpected exit code (${code})`,
`MongoDB Realm Studio closed with unexpected exit code (${code})`,
),
);
}
Expand All @@ -185,7 +185,7 @@ describe('Realm Studio packaged', () => {
const content = fs.readFileSync(readySignalPath, {
encoding: 'utf8',
});
assert.equal(content, 'Hello from a future Realm Studio!');
assert.equal(content, 'Hello from a future MongoDB Realm Studio!');
// Stop watching the file
fs.unwatchFile(readySignalPath, readySignalChanged);
resolve();
Expand Down
2 changes: 1 addition & 1 deletion src/testing/post-packaging/mocked-realm-studio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ electron.app.once('ready', () => {
message: `Writing to the ready signal: ${p}`,
});
*/
fs.writeFileSync(p, 'Hello from a future Realm Studio!', {
fs.writeFileSync(p, 'Hello from a future MongoDB Realm Studio!', {
encoding: 'utf8',
});
// Exit ...
Expand Down

0 comments on commit 726281d

Please sign in to comment.