mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix auto-update to use Lens notifications, and add update confirmation (#1831)
- Add auto-update and pre-release update user settings - Add settings in user preferences for auto-updating (default false) and for allowing pre-release versions (default false) - Use in-Lens notifications instead of OS notifications as those were found to be flaky - Add rudimentary main->renderer notification system. - Remove options, always confirm, never auto prelease - Changed "yes later" to "yes on quit" - move register IpcHandlers - use moment instead of dateformat - moved formatting notification buttons to renderer - move to RenderButtons as function component - explicitly only send notifications to main view - move delay to utils, always retry even if check failed - fix notification rendering and disabled the auto-updater for integration tests - update integration runner to output logs on failure - pin minikube version Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
1a4b6cddb5
commit
df47d1713c
24 files changed
+295
-61
No files matched your search
Executable
+30
@@ -0,0 +1,30 @@
|
||||
case $1 in
|
||||
mac)
|
||||
find ~/Library/Logs/Lens -type f -name *.log -delete
|
||||
;;
|
||||
linux)
|
||||
find ~/.config/Logs/Lens -type f -name *.log -delete
|
||||
;;
|
||||
win)
|
||||
find %APPDATA%/Logs/Lens -type f -name *.log -delete
|
||||
;;
|
||||
esac
|
||||
|
||||
yarn build:$1
|
||||
DEBUG=true yarn integration-runner
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
case $1 in
|
||||
mac)
|
||||
find ~/Library/Logs/Lens -type f -name *.log -exec cat >&2 {} \;
|
||||
;;
|
||||
linux)
|
||||
find ~/.config/Logs/Lens -type f -name *.log -exec cat >&2 {} \;
|
||||
;;
|
||||
win)
|
||||
find %APPDATA%/Logs/Lens -type f -name *.log -exec cat >&2 {} \;
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user