Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
meteor-desktop-splash-screen
Advanced tools
A nice splash screen for you Meteor app on desktop! (and an update screen too!)
In your .desktop/settings.json
add this package to your plugins list:
{
"plugins": {
"meteor-desktop-splash-screen": {
"version": "0.5.0"
}
}
}
Now place your logo in .desktop/assets/splashScreen.png
. It should be a png with transparency.
On Linux this does not look so nice because transparency is not supported in Electron out of the box.
You can pass custom settings to the plugin, for example:
{
"plugins": {
"meteor-desktop-splash-screen": {
"version": "0.5.0",
"style": {
"box-sizing": "border-box",
"border": "5px solid black",
"border-radius": "5px"
},
"imagePath": "mySplashLogo.png",
"windowSettings": { "width": 640, "height": 480 },
"clickThrough": true,
"updateScreen": true,
"updateScreenSettings": {
"imagePath": "updating.gif",
"windowSettings": {
"width": 400,
"height": 300
},
"clickThrough": false,
"style": {
"append": true,
"background-size": "auto"
}
}
}
}
}
Note that imagePath
should be relative to assets
directory in your .desktop
.
Here is a definition of what can be set:
/**
* @typedef {Object} PluginSettings
* @property {boolean} enabled - is splash screen enabled
* @property {string} windowTitle - title of the window that shows splash screen -
* it defaults to the `name` from settings.json
* @property {string} imagePath - path to the image relative to the .desktop dir
* @property {Object} style - style of the html body that displays the image
* @property {Object} windowSettings - settings passed to BrowserWindow
* @property {boolean} clickThrough - enables window click-through [true by default]
* @property {boolean} updateScreenOnDesktopHCP - true by default, shows update screen after app
* restart triggered by desktop HCP update, otherwise
* normal splash screen will be used
* @property {boolean} updateScreen - false by default, enables hot code push update
* screen
* @property {boolean} updateScreenProdOnly - true by default, shows the update screen only in
* production build
* @property {Object} updateScreenSettings - object in which you can override `windowTitle`,
* `imagePath`, `style`, `windowSettings`,
* `clickThrough` for `style` and `windowSettings`
* you can set `append` fields to true if you want
* to merge the settings and append/override them
* @property {boolean} debug - enables devTools, makes the window remain open,
* sets `resizable` and `alwaysOnTop` to false
*/
debug
can also be set at runtime by setting METEOR_DESKTOP_DEBUG
environmental variable.
If you have an icon set for the window in your settings.json it will be automatically used for splash screen's window - no need to set it here.
If you want to disable the splash screen temporarily for any reason you can use the METEOR_DESKTOP_NO_SPLASH_SCREEN
env var.
Place your update screen in .desktop/assets/updateScreen.png
and tweak necessary settings. The update screen receives all the settings from the splash screen but you can override them in updateScreenSettings
.
Also for style
and windowSettings
you can set append
field to true if you want to merge those instead of overriding.
updateScreenOnDesktopHCP
to false
PRs are always welcome. Be sure to update the tests.
For smooth developing process you need to open two terminals. In the first one type npm run build-watch
and in the second npm run test-watch
.
Tests are run by AVA.
updateScreenProdOnly: false
2.0.2
fullscreen: true
babel7
debug
field added to PluginSettings
0.2.0
(not all changes were included)clickThrough
field added to PluginSettings
- allows to disable splash screen window
click-through which was enabled by default so farsplash.html
is now saved to
userData
instead of application directory (fixes permission problems when installing for all users
with NSIS)FAQs
Meteor Desktop splash screen plugin.
We found that meteor-desktop-splash-screen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.