Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
PROJ_DIR=$PWD
|
|
|
|
DIST_DIR=${PROJ_DIR}/windows-installer/win64-dist
|
|
|
|
BUILD_DIR=$PROJ_DIR/build
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
JOBS=$NUMBER_OF_PROCESSORS
|
2024-03-29 12:58:47 +00:00
|
|
|
build_sys='cmake'
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg()
|
|
|
|
{
|
|
|
|
echo -e "\e[32m$1\e[0m"
|
|
|
|
}
|
|
|
|
|
|
|
|
fatal()
|
|
|
|
{
|
|
|
|
echo -e "\e[31m$1\e[0m"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
download_yolort()
|
|
|
|
{
|
|
|
|
file_name=cppwinrt-2.0.210122.3+windows-10.0.19041+yolort-835cd4e.zip
|
2024-03-29 12:58:47 +00:00
|
|
|
yolort_dir="$PROJ_DIR/plugins/windows-notification/yolort"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
rm -rf "$yolort_dir"
|
|
|
|
mkdir "$yolort_dir"
|
|
|
|
curl -L -o "$file_name" "https://github.com/LAGonauta/YoloRT/releases/download/v1.0.0/$file_name"
|
|
|
|
echo "675a6d943c97b4acdbfaa473f68d3241d1798b31a67b5529c8d29fc0176a1707 $file_name" | sha256sum --check --status
|
|
|
|
unzip -o "$file_name" -d "$yolort_dir"
|
|
|
|
rm -f "$file_name"
|
|
|
|
}
|
|
|
|
|
2024-03-26 19:48:19 +00:00
|
|
|
download_gtk4_git()
|
|
|
|
{
|
|
|
|
# FIXME: The bug fix https://gitlab.gnome.org/GNOME/gtk/-/issues/3749 is currently only available in the main branch,
|
|
|
|
# so GTK4 was builded from it. Needs to be replaced with a package from the MSYS2 repository when the changes get there.
|
|
|
|
url="https://github.com/mxlgv/mingw-w64-gtk4-git/releases/download/rel1"
|
|
|
|
gtk_pkg="mingw-w64-x86_64-gtk4-git-4.14.1.r62.gb1eed1c153-1-any.pkg.tar.zst"
|
|
|
|
gtk_gstreamer_pkg="mingw-w64-x86_64-gtk4-media-gstreamer-git-4.14.1.r62.gb1eed1c153-1-any.pkg.tar.zst"
|
|
|
|
|
|
|
|
curl -L -o "$gtk_pkg" "$url/$gtk_pkg"
|
|
|
|
curl -L -o "$gtk_gstreamer_pkg" "$url/$gtk_gstreamer_pkg"
|
|
|
|
|
|
|
|
pacman -U --needed --noconfirm "$gtk_pkg" "$gtk_gstreamer_pkg"
|
|
|
|
}
|
|
|
|
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
prepare()
|
|
|
|
{
|
|
|
|
msg "Installing MINGW64 build dependencies"
|
|
|
|
|
|
|
|
pacman -S --needed --noconfirm \
|
|
|
|
mingw64/mingw-w64-x86_64-gcc \
|
|
|
|
mingw64/mingw-w64-x86_64-cmake \
|
|
|
|
mingw64/mingw-w64-x86_64-ninja \
|
|
|
|
mingw64/mingw-w64-x86_64-libadwaita \
|
|
|
|
mingw64/mingw-w64-x86_64-sqlite3 \
|
|
|
|
mingw64/mingw-w64-x86_64-openssl \
|
|
|
|
mingw64/mingw-w64-x86_64-libgcrypt \
|
|
|
|
mingw64/mingw-w64-x86_64-libgee \
|
|
|
|
mingw64/mingw-w64-x86_64-vala \
|
|
|
|
mingw64/mingw-w64-x86_64-gsettings-desktop-schemas \
|
|
|
|
mingw64/mingw-w64-x86_64-qrencode \
|
|
|
|
mingw64/mingw-w64-x86_64-ntldd-git \
|
|
|
|
mingw64/mingw-w64-x86_64-gpgme \
|
|
|
|
mingw64/mingw-w64-x86_64-fontconfig \
|
|
|
|
mingw64/mingw-w64-x86_64-iso-codes \
|
|
|
|
mingw64/mingw-w64-x86_64-gstreamer \
|
|
|
|
mingw64/mingw-w64-x86_64-gst-plugins-bad \
|
|
|
|
mingw64/mingw-w64-x86_64-gst-plugins-good \
|
|
|
|
mingw64/mingw-w64-x86_64-gst-plugins-base \
|
|
|
|
mingw64/mingw-w64-x86_64-gst-plugins-ugly \
|
|
|
|
mingw64/mingw-w64-x86_64-nsis \
|
|
|
|
mingw64/mingw-w64-x86_64-libsignal-protocol-c \
|
|
|
|
mingw64/mingw-w64-x86_64-icu \
|
|
|
|
mingw64/mingw-w64-x86_64-webrtc-audio-processing \
|
2024-03-29 12:58:47 +00:00
|
|
|
mingw64/mingw-w64-x86_64-meson \
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
git \
|
|
|
|
make \
|
|
|
|
unzip \
|
|
|
|
curl
|
|
|
|
|
2024-03-26 19:48:19 +00:00
|
|
|
msg "Downloading and install git versions of gtk4 and gtk4-media-gstreamer packages"
|
|
|
|
download_gtk4_git
|
|
|
|
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
msg "Successfully installed!"
|
|
|
|
|
|
|
|
msg "Download YoloRT headers"
|
|
|
|
download_yolort
|
|
|
|
msg "Successfully downloaded!"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
configure_cmake()
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
{
|
|
|
|
msg "Running configuration for Windows"
|
|
|
|
./configure --program-prefix="$DIST_DIR" --no-debug --release --disable-fast-vapi --with-libsoup3
|
|
|
|
msg "Configured!"
|
|
|
|
}
|
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
build_cmake()
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
{
|
|
|
|
msg "Started building on $JOBS threads"
|
|
|
|
make -j"$JOBS"
|
|
|
|
msg "Successfully builded!"
|
2024-03-29 12:58:47 +00:00
|
|
|
msg "Installing Dino .."
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
configure_meson()
|
|
|
|
{
|
|
|
|
arg=${1:-"none"}
|
|
|
|
encr=${2:-"auto"}
|
|
|
|
local cmd=""
|
|
|
|
if [ x"${arg}" == x"reconfig" ]; then
|
|
|
|
cmd=--reconfigure
|
|
|
|
fi
|
|
|
|
mkdir -p $BUILD_DIR
|
|
|
|
meson setup ${cmd} --prefix "$DIST_DIR" \
|
|
|
|
-D crypto-backend=${encr} \
|
|
|
|
-D plugin-ice=enabled \
|
|
|
|
$PROJ_DIR $BUILD_DIR
|
|
|
|
}
|
|
|
|
|
|
|
|
build_meson()
|
|
|
|
{
|
|
|
|
cd $BUILD_DIR && ninja
|
|
|
|
ninja install
|
|
|
|
cd $PROJ_DIR
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dist_install()
|
|
|
|
{
|
2024-03-29 12:58:47 +00:00
|
|
|
_dist_arg=${1:-$DIST_DIR}
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg "Copying MINGW64 dependencies"
|
2024-03-29 12:58:47 +00:00
|
|
|
cp /mingw64/bin/gdbus.exe "$_dist_arg/bin"
|
|
|
|
cp /mingw64/bin/gspawn-win64-helper.exe "$_dist_arg/bin"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
cp /mingw64/bin/libcrypto-*-x64.dll "$_dist_arg/bin/"
|
|
|
|
cp -r /mingw64/lib/gstreamer-1.0 "$_dist_arg/lib"
|
|
|
|
mkdir -p "$_dist_arg/lib/gdk-pixbuf-2.0/" && cp -r /mingw64/lib/gdk-pixbuf-2.0 "$_dist_arg/lib/"
|
|
|
|
mkdir -p "$_dist_arg/lib/gio/" && cp -r /mingw64/lib/gio "$_dist_arg/lib/"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
list=`find "$_dist_arg" -type f \( -name "*.exe" -o -name "*.dll" \) -exec \
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
ntldd -R {} + | \
|
|
|
|
grep "mingw64" | \
|
|
|
|
cut -f1 -d "=" | sort | uniq`
|
|
|
|
for a in $list; do
|
2024-03-29 12:58:47 +00:00
|
|
|
cp -fv "/mingw64/bin/$a" "$_dist_arg/bin/"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
msg "Removing debug information from all EXE and DLL files"
|
2024-03-29 12:58:47 +00:00
|
|
|
find "$_dist_arg" -iname "*.exe" -exec strip -s {} +
|
|
|
|
find "$_dist_arg" -iname "*.dll" -exec strip -s {} +
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
find "$_dist_arg" -iname "*.a" -exec rm {} +
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg "Removing redudant header files"
|
2024-03-29 12:58:47 +00:00
|
|
|
rm -rf "$_dist_arg/include"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg "Copy LICENSE"
|
2024-03-29 12:58:47 +00:00
|
|
|
cp -f "$PWD/LICENSE" "$_dist_arg/LICENSE"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg "Copy icons, themes, locales and fonts"
|
2024-03-29 12:58:47 +00:00
|
|
|
cp -f "$PWD/main/dino.ico" "$_dist_arg/dino.ico"
|
|
|
|
cp -rf "/mingw64/share/xml" "$_dist_arg/share"
|
|
|
|
mkdir -p "$_dist_arg/etc/fonts" && cp -r /mingw64/etc/fonts "$_dist_arg/etc/"
|
|
|
|
mkdir -p "$_dist_arg/share/icons" && cp -r /mingw64/share/icons "$_dist_arg/share/"
|
|
|
|
mkdir -p "$_dist_arg/share/glib-2.0/schemas" && cp -rf /mingw64/share/glib-2.0/schemas "$_dist_arg/share/glib-2.0/"
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
|
|
|
|
msg "Successfully installed!"
|
|
|
|
}
|
|
|
|
|
|
|
|
build_installer()
|
|
|
|
{
|
|
|
|
msg "Building an installer for Windows using NSIS"
|
|
|
|
cd windows-installer
|
|
|
|
makensis dino.nsi
|
|
|
|
msg "Installer successfully builded!"
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
|
|
|
clean()
|
|
|
|
{
|
2024-03-29 12:58:47 +00:00
|
|
|
rm -rf $BUILD_DIR $DIST_DIR
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
msg "Build artifacts removed successfull!"
|
|
|
|
}
|
|
|
|
|
|
|
|
help()
|
|
|
|
{
|
2024-03-29 12:58:47 +00:00
|
|
|
cat << EOF
|
|
|
|
Script to build Dino for windows using cmake or meson build-system.
|
|
|
|
By default it will be build using build directory
|
|
|
|
$BUILD_DIR
|
|
|
|
and installed to
|
|
|
|
$DIST_DIR
|
|
|
|
|
|
|
|
Usage: $0 [option]
|
|
|
|
|
|
|
|
Note: you may set the multiple options, but be surem that they will be
|
|
|
|
processed sequentially (one-by-one), e.g. command
|
|
|
|
$0 -s meson -c -b
|
|
|
|
will run buld config and _after_ that run build using meson, while
|
|
|
|
$0 -c -b -s meson
|
|
|
|
will run cmake-based configure & build commands and the -s option
|
|
|
|
wont have any effect. And the one
|
|
|
|
$0 -b -s meson -c
|
|
|
|
is incorrect, as it willtry to run build(for cmake), then configure
|
|
|
|
with for meson build.
|
|
|
|
|
|
|
|
--help, -h
|
|
|
|
print this help message.
|
|
|
|
|
|
|
|
--set-buildsys, -s
|
|
|
|
set (specify) build system name to be used
|
|
|
|
possible options are: cmake or meson
|
|
|
|
|
|
|
|
--prepare, -p
|
|
|
|
install build dependencies. may be done once.
|
|
|
|
|
|
|
|
--configure, -c
|
|
|
|
configure build using selected build-system.
|
|
|
|
|
|
|
|
--build, -b
|
|
|
|
invoked build.
|
|
|
|
|
|
|
|
--reconfig, -r
|
|
|
|
reconfigure project, if minor changes were
|
|
|
|
done to build config files but build has been
|
|
|
|
configured already (only for meson!).
|
|
|
|
|
|
|
|
--whipe, -w
|
|
|
|
remove build artifacts from $BUILD_DIR
|
|
|
|
|
|
|
|
--verbose, -v
|
|
|
|
verbose output enable.
|
|
|
|
|
|
|
|
--dist-install, -i
|
|
|
|
install the builded project along with its'
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
--build-installer
|
|
|
|
build installer (using NSIS)
|
|
|
|
|
|
|
|
Running without parameters will run configure, build & install
|
|
|
|
using cmake-based build-system as default one.
|
Added full Windows support (#8)
* Windows compatibility Tweaks
* Add experimental windows installer
This nsis script should create a windows installer.
Although the installer worked for the first tests
you should handle it with care and consider it
highly experimental
* Prepare signing
Collected some infos regarding signing
a windows build.
* Revert "Prepare signing"
I copied the files into the wrong folder…
… it's late, sorry.
This reverts commit 7d6b9e7f4cd066b4b59eddec09be3bcac5c6c656.
* Prepare signing
Collected some infos regarding signing
a windows build.
* Fix typo in Dino slogan
* Add license to windows installer
* Add startmenu folder with several items
Added a startmenu folder with the following items:
* Dino launcher
* License
* Link to Dino website
* Uninstaller
* Prevent duplicated DLLs
* Add dino logo again
The dino logo for the startmenu was accidentally
no longer included since the last commit.
* Simplify installer script
The current build script already places the files in the right
folder structure so the installer doesn't have to do it itself
* Add german language.
* Add option to install without OpenPGP plugin
* Removed compenent section
This section was only introduced to be able to
disable the OpenPGP plugin as Dino often crashed
on Windows if OpenPGP was not installed but the
plugin enabled.
This is no more necessary as the OpenPGP plugin
is now disabled by default.
* Remove installation type "OpenPGP" support
This is no longer needed (see previous commit)
but was forgotten to remove in the previous
commit.
* Add compression to achieve smaller installer size.
* Add AppID (untested).
* Fix syntax error for setting AppID.
* Windows compatibility Tweaks
* fix build on newest MSYS2
* Do not search for the built-in libraries when compiling with MINGW
* Added _WIN32 define to VALAC on Windows
* Add missing _WIN32
* Add support for OpenPGP on Windows
* Use ShellExecute instead of AppInfo to open files on Windows
* Use slight larger font on Windows so it matches Linux style
Also fixes some fuzzy fonts.
* Fixed some Windows not appearing when opening file
* Set alternate file stream for downloaded files.
* Added information and Dino icon to Windows executable
* Set Windows executable version from PROJECT_VERSION
* Add WIN32 fonts as a plugin
* Every call to CoInitialize() must be balanced
with a call to CoUninitialize()
* Add --export-all-symbols to Windows compilation
* Add implicit link directories to package HINT path on MingW
Instead of blacklisting those libraries
* Do not hardcode GPG path on Windows
* Export all plugin symbols on Windows
* Use Dino.Util.get_content_type also on preview
* Allow 32-bit linking
Win32 apis are __stdcall
* Use last_index_of instead of index_of
* Initial notification support
* Refactor windows-notification plugin
* Clean up
* Use code from Dino.Ui.Util
* Convert C code to Vala
* Add callback support
* Allow null image_path
* Use dynamic linking instead of runtime loading
Also made me notice that the signature of the function with the callback was wrong. Oops.
* Added 32-bit wintoast linker library
* Use VAPI and generate template in-app
* Initial plugin using new notification provider
* Add support for custom actions on notification
* Add notification retraction
* Use list with all notifications
* Rename field
* Fix muc invite and voide request not working
* Do not use GLib to open links in messages
Use ShellExecute
* Add MIT licensed winrt headers
* Initial code for using winrt headers
* Initial callback support
* Initial GObject wrapper for WinRT notifications
Still missing a lot of stuff
* Initial code to allow buttons and text
* Use string_view
* Increase ref on event token
* Add toastnotifier
* Fix string conversion
* Actions can stack
* Remove unity compilation unit
* No need to enable coroutines
* Fields must be created in the private struct
Also change unordered_map to list, we do not need hashing and stuff.
* Add failed and dimissed actions
* Cleanup dismissed actions on toast notification finalizer
* Add template type enum
* Rename enums to better match what Vala expects
* Rename plugin vala file
* Add template getter
* Initial experiments with notification XML building
* Anitial builder
* Initial notification provider using WinRT
Crashes when activating actions, might be related to threads.
* Delegate `activate_action` to UI thread
* Fixed crash with multiple notifications
Sometimes an invalid function pointer was called with an invalid context
* Add comment to builder
* Use async
* Use g_new0 and g_free to generate raw strings
* Valac think that getters are always owned by the struct
* introduce try_invoke -- a logging exception catcher
* stop exceptions from crossing ABI boundary in a few places
* mark exception-safe C entry points as such
* clarify some entry points' names
* make GetCurrentModulePath and GetShortcutPath throw win32 errors
* clarify GetCurrentModulePath's name
* generalize GetShortcutPath into GetEnv
* make GetEnv more robust and not limit length of variables
* change some local functions' signatures
* constify all the things
* rewrite shortcut management code with RAII, error logging and exceptions
It actually works now.
* add restoration of shortcut's target path
* switch to runtime loading of PropVariantToStringAlloc
Now it really should work.
* Add ginvoke to CMakeLists
* Removed unused library on linker
It is loaded dynamically
* Add README.md to Windows notification plugin
* Fix notifications not hiding
* unimplement accidentally implemented wide string overloads of describe_argument
* work around GetEnvironmentVariable not resetting last error
* handle exe paths longer than 259 chars
* move some whitespace around
* use lower-case 0x prefix for hresult code formatting everywhere
* remove an unused include
* make meta-error messages more precise
* handle empty hresult_error message specially
* handle theoretical future failures of wsview_to_char
* fix UB in glib::describe_arguments called with no arguments
Makes failure logging of nullary invokables non-crashy.
* make glib::impl::varstring less explosive
* fiddle with punctuation
* add nullary version of g_try_invoke macro
* generalize glib::try_invoke to any return-by-value type and void
* protect GetTemplateContent callers from exceptions
* rewrite InitApartment and protect callers from (the rest of the) exceptions
Initializing COM by calling `winrt::init_apartment()` would always cause
stack unwinding *in practice*, which is suboptimal at best, and even using
`apartment_type::single_threaded` still would require exception filtering
*just in case*.
* handle empty menu-relative shortcut paths
* move module loading functions out of shortcutcreator.cpp
* work around a (pedantic) format specifier warning
* silence enum stringification warnings by first casting to underlying types
* fix / work around uninitialized fields warnings
* don't use FALSE as a null pointer constant
* replace C-style concurrent initialization of statics
C++ statics are thread-safe as is and are usually implemented more
efficiently. Besides, `volatile` is likely misused here anyway.
* reflow/respace
* stop checking for empty AUMIDs
The downstream code handles them just fine.
* log SetCurrentProcessExplicitAppUserModelID errors
* remove the no-longer-needed -municode compile option
* replace lists with vectors
* init `Callback` completely always
The `token` pointer was left dangerously uninitialized after construction.
* comment out unused arguments [-Wunused-parameter]
* Add support for adaptive Windows 10 notifications
* Add support for inline images to notification
* Allow null header, body, applogo, and image on notification builder
* DelegateToUi must be an owned function
* Prefer primary DirectSound device on Windows
It automatically selects the default device for use,
there is no book keeping necessary and things just work
The primary DirectSound device has a (NULL) guid, making
it wasy to be found.
* Do not allow selection of WASAPI devices
Dino would have to resample it own audio, do more book keeping and
somehow find out manually which is the default device.
* Add initial call notifications
* Use correct generic type for ArrayList
Nullable crashes Dino
* Allow devices with properties and use has_classes
* Remove YoloRT from tree
* Build YoloRT on project build
* Do not generate WinRT headers, just download them on build
* Fix compilation on gcc 11
* define _POSIX_C_SOURCE=1 on windows
Fixes "undefined reference to `localtime_r`" in, e.g., Vala's GLib.Time.local
when building on mingw-w64.
* fix call notifications buttons not working
* no need to ignore wasapi
* Ignore wasapi devices as they do not work well yet
* Removed version from Dino executable
We need a better way to get the version number
* Automatically set PANGOCAIRO_BACKEND to fontconfig on win32
* Fixed using GTK3 instead of GTK4
* Check YoloRT checksum before building
* Fix GPGME
* Added build script for windows
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added README-WIN64.md
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed dist-install dir
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Removed unnecessary installer files
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Added build-installer target to build-win64.sh
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Fixed build dependencies
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
* Move download yolort headers logic into prepare stage, delete yolort download script
* Added CI for MSYS2 (MINGW64) (#2)
- Use quotes in windows build script;
- Added missing gstreamer, webrtc-audio-processing and git;
- Added CI for Windows.
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
---------
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
Co-authored-by: LAGonauta <lagonauta@gmail.com>
Co-authored-by: Martin Dosch <spam@mdosch.de>
Co-authored-by: Martin Dosch <martin@mdosch.de>
Co-authored-by: mjk <yuubi-san@users.noreply.github.com>
Co-authored-by: Daniel Reuther <daniel.reuther@liferay.com>
Co-authored-by: Felipe <LAGonauta@users.noreply.github.com>
Co-authored-by: Psayker <kirill970528@yandex.ru>
2024-03-18 19:51:50 +00:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
if [[ "$(uname)" != "MINGW64_NT"* ]]; then
|
|
|
|
fatal "This is not a MINGW64 environment!"
|
|
|
|
fi
|
|
|
|
|
2024-03-29 12:58:47 +00:00
|
|
|
# no options provided,simply build with defaults
|
|
|
|
if [[ $# == 0 ]]; then
|
|
|
|
prepare
|
|
|
|
configure_${build_sys}
|
|
|
|
build_${build_sys}
|
|
|
|
dist_install
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
while [[ $# > 0 ]];
|
|
|
|
do
|
|
|
|
case $1 in
|
|
|
|
--prepare|-p)
|
|
|
|
prepare
|
|
|
|
;;
|
|
|
|
--configure|-c)
|
|
|
|
configure_${build_sys}
|
|
|
|
;;
|
|
|
|
--build|-b)
|
|
|
|
build_${build_sys}
|
|
|
|
;;
|
|
|
|
--reconfig|-r)
|
|
|
|
configure_${build_sys} reconfig
|
|
|
|
;;
|
|
|
|
--whipe|-w)
|
|
|
|
clean
|
|
|
|
;;
|
|
|
|
--dist-install|-i)
|
|
|
|
dist_install
|
|
|
|
;;
|
|
|
|
--verbose|-v)
|
|
|
|
set -xv
|
|
|
|
;;
|
|
|
|
--help|-h)
|
|
|
|
help
|
|
|
|
exit 0;
|
|
|
|
;;
|
|
|
|
--build-installer)
|
|
|
|
build_installer
|
|
|
|
;;
|
|
|
|
--set-buildsys|-s)
|
|
|
|
if [ x"$2" != x"cmake" -a x"$2" != x"meson" ]; then
|
|
|
|
fatal "Improper build system selected: ${2}!"
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
build_sys=$2
|
|
|
|
;;
|
|
|
|
-*)
|
|
|
|
echo "Unknown option $1"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|