29 Commits

Author SHA1 Message Date
David Cassany
cd3b23eb79 Add RPM and DEB targets to electron-builder
This commit adds RPM and DEB targets to the electron builder manifest
and uploads the result within the packaging workflow.

Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-08 10:52:05 +02:00
David Cassany
724b31e991 Add integration path in paths and set it to ~/.local/bin on Linux
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-08 10:51:53 +02:00
David Cassany
f13976e8bd Fix system tray on KDE
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:48 +02:00
David Cassany
8116e0131f Do not call process.kill(0) on exit
Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:47 +02:00
David Cassany
68697abf14 Adding icons, desktop file and appdata xml
This commit adds the desktop files that flatpak expects for a proper
desktop integration according to the FreeDesktop specs.

Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:47 +02:00
David Cassany
3e7be298c4 Adding linux support for Rancher Desktop
Rancher Desktop support for linux is currently based on flatpak.

Signed-off-by: David Cassany <dcassany@suse.com>
2021-10-06 13:55:41 +02:00
Matt Farina
879db470a3 Merge pull request #545 from mook-as/update-prod-server
Use production upgrade server.
2021-08-30 15:01:06 -04:00
Mark Yen
70db9868a3 Electron-builder: Build zip distribution for mac
This is used for updates.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-08-27 11:14:58 -07:00
Mark Yen
7df586f2ec Updates: Use production server.
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-08-26 13:45:24 -07:00
Mark Yen
e480fe1937 Update: Hide update enabled checkbox if no update server configured.
This hides the update checkbox if the update server is not configured, so
that the users don't get confused by a checkbox that doesn't do anything
(and therefore don't manually check for updates).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-08-03 15:52:41 -07:00
Mark Yen
f97ed5c503 GitHub Actions: Build Windows zip file too
This forces the build of the Windows zip archives; this can be used to do
offline signing and installer generation.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-08 17:25:39 -07:00
Mark Yen
b2ff141552 Updater: new.
This implements the Longhorn update provider, where it will ping the
Longhorn upgrade-repsonder for update information, and fetch the actual
binaries from GitHub.  This also adds Longhorn overrides to the NSIS &
Mac updater components to be able to override the update provider, as
upstream currently does not allow this.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-05 18:16:13 -07:00
Mark Yen
f3f08c5d5b Electron-builder: Create custom publisher
We plan on using Longhorn's upgrade-responder to handle upgrade pings,
backed by GitHub releases for the actual binaries.  As a first step, we
need to create a custom electron-builder Publisher backend to generate the
necessary fields to be examined durin the upgrade ping process.

Note that this publisher does not actually publish anything; it just
resolves the options at build time to be written into the configuration
file.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-05 18:16:12 -07:00
Mark Yen
8e3e93afa5 scripts/postinstall: Download lima for macOS
This is not used yet.  Fixes #379.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-02 09:48:18 -07:00
Matt Farina
f5b57459e0 Adding a macOS icon fitting Apple guidance
Closes #237

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-06-11 16:34:41 -04:00
Mark Yen
bd3895ad27 NSIS: Add license
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-12 15:15:16 -07:00
Mark Yen
2d1175c760 Electron-builder: Remove camera & mic strings on mac
Electron-builder has default entries in Info.plist for why it might want
camera and microphone usage (required on macOS 10.15+ for media access).
As we are unlikely to ever want media access, remove those entries instead
so that people are not confused about us possibly wanting unnecessary
permissions.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-11 14:50:29 -07:00
Eric Promislow
2e9b4fdd8a Merge pull request #244 from vincent99/main
Various small text & layout changes
2021-05-07 10:48:27 -07:00
Mark Yen
0ad31975c5 Windows Installer: Don't use OneClick mode
We will need to prompt for restart; so we need to have some sort of UI for
it.  We do not need to prompt to install the app for all users, though.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-05 10:09:44 -07:00
Vincent Fiduccia
353208147d Show Copyright 2021 SUSE in About instead of Copyright 2021 Rancher Desktop
Signed-off-by: Vincent Fiduccia <vincent@rancher.com>
2021-05-03 16:26:55 -07:00
Mark Yen
f36701d64c Windows installer: add bin to PATH
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-03 10:26:33 -07:00
Matt Farina
fd38e12d78 Making the appId consistent
Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-04-30 12:38:10 -04:00
Matt Farina
58ea07ad8b Setup to sign and notarize
This requires a valid signing certificate and credentials in
environment variables to upload to apple for notorization

Closes #165
Closes #167

Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-04-30 12:38:06 -04:00
Mark Yen
ef10790bab Electron-builder: Explicit reference to desktop
Addresses:
https://github.com/rancher-sandbox/rd/pull/196#discussion_r622189088

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-28 09:29:19 -07:00
Mark Yen
294279ec30 Electron-builder: set appId
We should set the appId so that upgrades of the installer package in the
future will work correctly.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-27 17:49:54 -07:00
Matt Farina
732f8577b1 Updating to new icons
Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-04-23 16:31:18 -04:00
Matt Farina
3831228382 Updated the name to Rancher Desktop for the build
Signed-off-by: Matt Farina <matt.farina@suse.com>
2021-04-23 12:23:26 -04:00
Mark Yen
e6c11fe85a scripts/build: use shared build helpers
Hopefully this makes things easier to read.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-02-26 14:17:57 -08:00
Mark Yen
a9e88ac5ac Nuxt: packaging changes
Update various packaging / path related code for nuxt/nuxtron.
2021-02-03 14:48:35 -08:00