Commit graph

35 commits

Author SHA1 Message Date
Tom Dewey
103924eff0 imagewriter: Windows: Remove taskbar progress indicator
This is no longer supported in Qt6, with no replacement available.
2024-09-11 17:12:48 +01:00
Tom Dewey
eee59445d2 embedded: Favour CoreAppliation over Application 2024-06-25 10:10:55 +01:00
Tom Dewey
38ea837ba7 imagewriter: Use QCoreApplication::translate
tr() is not safe for strings that you move between contexts,
as it fails to provide a mechanism for specifying the context
of the string.

Regenerate the translation files, and use QCoreApplication to locate
the real translations.

Additionally, bodge a race condition between translator replacement
and OS list fetching, by marking the OS list as something to be
re-calculated on a translator change.

Fixes #799
2024-02-06 16:12:05 +00:00
Floris Bos
03f6a9bc30 Linux: don't offer ssh-keygen on embedded platform
Closes #786
2024-01-29 22:27:25 +01:00
Floris Bos
8c9de2d78c Embedded: fix network detection 2024-01-15 00:16:43 +01:00
Aaron Dewes
92fd375886 Fix file being passed to --repo
Since #719, you can no longer use a local json file with --repo (At least in Qt 6). A network request to a file:// url has statusCode 0, which caused this check to fail previously.
2023-11-20 15:33:22 +00:00
Tom Dewey
9af4f15b27 imagewriter: No filtering should get full OS list 2023-11-16 10:40:51 +00:00
Tom Dewey
eb2d54a423 imagewriter: Remove unnecessary mutexes
Per suggestion from @maxnet, remove unnecessary guards. Qt signals/slots
will guard against concurrency issues.
2023-11-14 09:53:35 +00:00
Tom Dewey
d2251291ce imagewriter: Fixup redirect handling 2023-11-14 09:53:35 +00:00
Tom Dewey
b3d5221ac2 filtering: Move to C++ backend 2023-11-14 09:53:35 +00:00
Tom Dewey
b29ec3350c imagewriter: Insert nascent HW filter 2023-11-14 09:53:35 +00:00
Tom Dewey
a25855c41a imagewriter: Remove nascent HW filter
This isn't ready yet - so remove the unused stubs.
2023-11-14 09:53:35 +00:00
Tom Dewey
2bd4a068bc imagewriter: Remove unique_ptr for _networkManager 2023-11-14 09:53:35 +00:00
Tom Dewey
a6200ba994 imagewriter: Code style
Use snake_case for local variables.
2023-11-14 09:53:35 +00:00
Tom Dewey
aeb4ceb73f imagewriter: Resolve TOCTOU in getFilteredOSList 2023-11-14 09:53:35 +00:00
Tom Dewey
fc2b67a20c imagewriter: Delete NetworkReplys later. 2023-11-14 09:53:35 +00:00
Tom Dewey
673b3c7a33 qml: move OS list fetch to backend
- Simple implementation of OS list fetching in backend
- Replace frontend OS list fetching by calls to backend
- OS list updates are brought in asynchronously, avoiding excessive UI
  blockage.
- "Erase" and "Custom" OS list options are always present, even in a
  no-internet scenario

Based-On: cillian64/rpi-imager/oslist_backend
2023-11-14 09:53:35 +00:00
Tom Dewey tom.dewey@raspberrypi.com
ecf992cb62 Rework OS Customization
In the new flow, it doesn't make sense to _not_ save the OS
customization parameters, so remove the ComboBox.

Additionally, our data model was failing to notify the UI of changes to
the saved settings state. Due to time constraints, I'm not able to
resolve the binding in the 'correct' manner, but I can introduce a
makeshift status signalling mechanism to prevent UI inconsistency.
2023-10-17 15:28:04 +01:00
Floris Bos
e8931b7b8f Local .xz files: parse uncompressed size for better progress reports 2023-09-25 21:13:22 +02:00
Floris Bos
ce549cadb2 Misc advanced options improvements 2023-09-23 19:45:17 +02:00
Floris Bos
6eb358ed75 WIP: Tabbed options interface 2023-09-22 23:51:36 +02:00
Floris Bos
e490ec1c4d Windows: fix depreceation warnings
- winsock2.h should be included before windows.h
- QProcess::execute('name') -> QProcess::execute('name', args);
2023-05-22 10:46:07 +02:00
Floris Bos
6dc2f3e58e Refactor WLAN PSK retrieval code
- Reduce platform specific code in ImageWriter class,
  and move that to seperate classes.
- Use API calls to get current SSID on Windows and Linux instead
  of launching command line utilities.
2023-03-10 18:37:22 +01:00
Floris Bos
d972d5b87b Windows WLAN PSK retrieval: unescape XML
Assuming unescaping standard XML entities is sufficient.
(Skipping numerical unicode XML entities for now, as
there is not a proper standardized way to
represent non-ascii characters in a PSK anyway)

Ref #541
2023-01-25 14:37:24 +01:00
Floris Bos
05f1c4dbb5 Add integration tests
Tests if repository json files conform to the json schema.
If all resources (images/icons/website URLs) they mention actually
exists.

And can also test writing images and the FAT modification code.
2022-11-19 23:49:43 +01:00
Floris Bos
ebc6edc0c3 Advanced settings: use current username instead of Pi as default
Instead of using 'pi' as default, try to get the username of
the current user from the OS.

May not always work. (e.g. some Windows users may not have
setup a username themselves, but may be using a default user
created by the PC vendor).

Closes #497
2022-11-15 01:10:46 +01:00
Floris Bos
9c95398210 Ensure buffering is used when writing uncompressed images
Just feed them through the libarchive workflow as well.
Prevents issues on Windows/osx when writing uncompressed images
that come from the Internet.

Ref #473
2022-08-18 15:37:37 +02:00
Floris Bos
ef4abc661f Linux distros that use NetworkManager: prefill WLAN PSK
Only supported when NetworkManager is used on the Linux distro
as wpa_supplicant itself does not support reading PSKs through
DBus, only setting them.

Closes #457
2022-07-31 13:24:52 +02:00
Floris Bos
b1606dd1fb Linux: remove leftovers of OpenSSL dependency
OpenSSL was replaced by GnuTLS for SHA256 calculation in
cb415a6a02
Remove left-over header includes and adjust dependencies in README
2022-07-31 13:14:51 +02:00
Pavel Shliak
4f8980d48e
Allow selection of files without extension
I have automatically generated images that do not match *.* as filename contains no dots. I have to rename them every time :(
2022-07-02 16:48:30 +03:00
Floris Bos
cb415a6a02 Linux: allow using GnuTLS instead of OpenSSL for computing SHA256 hashes
Prevents issues with often changing OpenSSL ABI.

Ref #429
2022-06-14 16:13:55 +02:00
maxnet
d2a92383b6
Merge pull request #362 from lnussel/qml
Add compile time options for telemetry and updates
2022-03-24 17:49:16 +01:00
Floris Bos
c4cfcd0604 Embedded: fix font support for eastern countries 2022-02-21 17:47:06 +01:00
Ludwig Nussel
5d971375f6 Add compile time options for telemetry and updates 2022-02-14 16:03:02 +01:00
Floris Bos
033ff07abf Move source files to /src 2022-02-14 10:07:15 +01:00
Renamed from imagewriter.cpp (Browse further)