Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version 4.20.0 #333

Merged
merged 28 commits into from
Mar 6, 2024
Merged
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3f143aa
Add support for new report folder option
ZIMkaRU Jan 11, 2024
4d0908e
Create print-pdf adapter based on electron api
ZIMkaRU Feb 8, 2024
c8bc64c
Use print-pdf adapter under electron
ZIMkaRU Feb 8, 2024
2c9be35
Improve print-to-pdf request handling under electron
ZIMkaRU Feb 9, 2024
479a2e9
Add ability to create pdf using temp file storage
ZIMkaRU Feb 9, 2024
cc39582
Prevent phantomjs-prebuilt insertion into build
ZIMkaRU Feb 13, 2024
967e074
Merge pull request #319 from ZIMkaRU/feature/add-support-for-pdf-reports
ezewer Feb 20, 2024
35e983b
Add ability to set repo owner from env var into electron-builder config
ZIMkaRU Feb 21, 2024
b31f531
Add repo owner to electron env vars example file
ZIMkaRU Feb 21, 2024
0711700
Prevent electron-builder config modifying when set repo owner
ZIMkaRU Feb 21, 2024
e5be734
Launch e2e tests when build is successful
ZIMkaRU Feb 21, 2024
eaa1bbf
Add REPO_OWNER env var into docker-compose config
ZIMkaRU Feb 21, 2024
1c4e0bc
Skip gh wf for test report if test runner is canceled
ZIMkaRU Feb 21, 2024
31d835b
Fix random failed to install npm package from git in docker
ZIMkaRU Feb 22, 2024
dff36aa
Merge pull request #322 from ZIMkaRU/feature/optimize-github-workflow…
ezewer Feb 22, 2024
a28af7e
Fix disabling auto-update when build release
ZIMkaRU Feb 23, 2024
c2bd9c8
Update gh actions to resolve deprecation warnings
ZIMkaRU Feb 23, 2024
a6e0eb0
Point coactions/setup-xvfb gh action to exect commit to have last nod…
ZIMkaRU Feb 23, 2024
cb600d0
Use actions/upload-artifact v3 for uploading test results to fix inco…
ZIMkaRU Feb 23, 2024
61c3dfc
Merge pull request #323 from ZIMkaRU/feature/optimize-github-workflow…
ezewer Mar 4, 2024
d02e297
Fix 11 auto-update-toast:width listeners added
ZIMkaRU Mar 4, 2024
17ec693
Merge pull request #330 from ZIMkaRU/bugfix/fix-11-auto-update-toast-…
ezewer Mar 4, 2024
5eb1cb1
Add option to set repo owner for auto-update in manual run
ZIMkaRU Mar 6, 2024
654a979
Merge pull request #331 from ZIMkaRU/feature/add-option-to-set-repo-o…
ezewer Mar 6, 2024
ad7dea6
Bump version up to v4.20.0
ZIMkaRU Mar 6, 2024
29c6211
Add changelog for v4.20.0
ZIMkaRU Mar 6, 2024
31df28a
Update sub-modules
ZIMkaRU Mar 6, 2024
630b4a9
Merge pull request #332 from ZIMkaRU/feature/release-electron-app
ezewer Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 27 additions & 17 deletions src/auto-updater/index.js
Original file line number Diff line number Diff line change
@@ -96,6 +96,23 @@ const _fireToast = (
WINDOW_EVENT_NAMES.CLOSED,
() => closeAlert(alert)
)
const autoUpdateToastWidthHandler = (event, data) => {
alert.browserWindow?.setBounds({
width: Math.round(data?.width ?? 0)
})
}
const autoUpdateToastRepositionHandler = () => {
const { x, y, width } = win.getContentBounds()
const { width: alWidth } = alert.browserWindow.getContentBounds()

const boundsOpts = {
x: (x + width) - alWidth,
y,
height
}

alert.browserWindow.setBounds(boundsOpts)
}

const bwOptions = {
frame: false,
@@ -155,6 +172,14 @@ const _fireToast = (
},
didClose: () => {
eventHandlerCtx.removeListener()
ipcMain.removeListener(
'auto-update-toast:width',
autoUpdateToastWidthHandler
)
ipcMain.removeListener(
alert.uid + 'reposition',
autoUpdateToastRepositionHandler
)

didClose(alert)
}
@@ -169,23 +194,8 @@ const _fireToast = (
sound
)

ipcMain.on('auto-update-toast:width', (event, data) => {
alert.browserWindow?.setBounds({
width: Math.round(data?.width ?? 0)
})
})
ipcMain.on(alert.uid + 'reposition', () => {
const { x, y, width } = win.getContentBounds()
const { width: alWidth } = alert.browserWindow.getContentBounds()

const boundsOpts = {
x: (x + width) - alWidth,
y,
height
}

alert.browserWindow.setBounds(boundsOpts)
})
ipcMain.on('auto-update-toast:width', autoUpdateToastWidthHandler)
ipcMain.on(alert.uid + 'reposition', autoUpdateToastRepositionHandler)

return res
}