6622 Commits

Author SHA1 Message Date
Dimitris Panokostas
7ecdc36722
added more mime types (fixes #1461) (#1468)
* added more mime types (fixes #1461)
Refactored a few more files

* Fixed path to Desktop file
2024-10-10 11:22:35 +02:00
Dimitris Panokostas
0c5d05255e
Refactor cmakelists (#1467)
* refactor: break out CMakeLists.txt

Make things more manageable by breaking out sections of the monolithic CMakeLists.txt into separate files
2024-10-10 10:37:14 +02:00
Dimitris Panokostas
940c046ad2
Fix flatpak (#1466)
* refactor: fix flatpak builds
- added FindHelper.cmake
- Bumped Flatpak runtime to 24.08
- Version changes

* fixed find helper for libserialport

* use variables for find_helper libs

* fixed libmpeg2 vs libmpeg2convert

* refactor: desktop and metainfo.xml files
- Merged files between flatpak and normal Linux packages

* Update com.blitterstudio.amiberry.yml

* Update Amiberry.desktop
2024-10-10 08:55:46 +02:00
Dimitris Panokostas
8714e0e346
chore: updated commit for flatpak-preview
[skip ci]
2024-10-09 16:27:31 +02:00
Dimitris Panokostas
7882b2c8fc
refactor: Flatpak update (#1465)
* refactor: updating flatpak files based on new changes

[skip ci]
2024-10-09 16:24:47 +02:00
Dimitris Panokostas
270490da7d
refactor: Moved "abr" folder under data. (#1464)
It doesn't really belong in plugins.
2024-10-09 15:52:58 +02:00
Dimitris Panokostas
2f3a353c3f
enhancement: improved icon, added svg version (#1463)
* enhancement: improved icon, added svg version

* enhancement: Use the MacOS-specific icon

* bugfix: Fixed description file
2024-10-08 22:56:48 +02:00
Dimitris Panokostas
b2fc655f71
build: added optimize.cmake 2024-10-07 20:10:29 +02:00
Dimitris Panokostas
b192bae4d4
refactor: set all GUI internal windows to be not movable 2024-10-06 21:32:21 +02:00
Dimitris Panokostas
3c6f62acbb
ci: RPM files have dashes instead of underscores 2024-10-06 19:21:07 +02:00
Dimitris Panokostas
35c02ace7d
ci: specify package format for each target 2024-10-06 19:03:25 +02:00
Dimitris Panokostas
81fe61af91
ci: added Fedora RPM builds 2024-10-06 18:53:20 +02:00
Dimitris Panokostas
261406f18f
build: added RPM package option
Add support for RPM packages with CPack.
Tested on Fedora 40
2024-10-06 17:39:40 +02:00
Dimitris Panokostas
cd1832be4c
refactor: clang-tidy cleanup 2024-10-06 12:00:17 +02:00
Adam Sampson
9931c27d6c
enhancement: use XDG_*_HOME in a more standard way (#1458)
These variables are defined in the XDG Base Directory specification
(https://specifications.freedesktop.org/basedir-spec/latest/).

Previously, amiberry only used the XDG directories if XDG_DATA_HOME or
XDG_CONFIG_HOME were defined. However, these variables are usually only
set if the user wants to use a non-standard directory (e.g. in the
Flatpak environment).

After this commit, amiberry now computes the standard default values for
these variables based on HOME if they aren't defined, and checks for the
existence of:

- XDG_DATA_HOME/amiberry - used as Amiberry's home directory
- XDG_DATA_HOME/amiberry/data - used as Amiberry's data directory
- XDG_CONFIG_HOME/amiberry - used as Amiberry's config directory
- XDG_DATA_HOME/amiberry/conf - used as Amiberry's config directory

If they don't exist, then ~/Amiberry will be created and used as before.

The effect of this is that if a user wants to avoid having ~/Amiberry in
their home directory, they can just rename ~/Amiberry to
~/.local/state/amiberry, and it'll use that path instead. They can
optionally move Amiberry/conf to ~/.config/amiberry as well.
2024-10-06 11:24:23 +02:00
Dimitris Panokostas
07184fe386
bugfix: don't associate all .lha files with Amiberry (fixes #1461) 2024-10-05 15:40:02 +02:00
Dimitris Panokostas
fadeac9ab7
refactor: Use XDG_DATA_HOME in a better way (fixes #1457)
- There should be a subdir for amiberry in XDG_DATA_HOME, if we choose that
- The data files should go under amiberry/data there
2024-10-05 15:20:48 +02:00
Dimitris Panokostas
b5129e7aa0
Alt tab release (#1460)
* added reset keyboard during release_keys

* trigger a key-up on all scancodes
2024-10-04 19:05:31 +02:00
Dimitris Panokostas
aada2f3e69
refactor: set linker flags optionally (#1459) 2024-10-04 18:10:56 +02:00
Dimitris Panokostas
8c50377f96
Revert "build: strip shared libraries in release builds"
This reverts commit 3069d011aad080ef8c7546c5d3bc340ee71e06bc.
2024-10-04 16:18:23 +02:00
Dimitris Panokostas
2c8ce96d27
Revert "build: only apply linker flags on GCC (clang fails)"
This reverts commit e9f5723cd0e091d50299f0d3459b01cdcd9718ba.
2024-10-04 16:18:13 +02:00
Dimitris Panokostas
e9f5723cd0
build: only apply linker flags on GCC (clang fails) 2024-10-04 16:06:45 +02:00
Dimitris Panokostas
3069d011aa
build: strip shared libraries in release builds 2024-10-04 15:56:58 +02:00
Dimitris Panokostas
8e13e82427
build: fix linker errors in some environments 2024-10-04 15:43:12 +02:00
Dimitris Panokostas
e72e52a3f3
build: refactor compiler/linker options 2024-10-04 09:17:28 +02:00
Dimitris Panokostas
63d082fc5a
build: move -no-pie to linker flags 2024-10-04 08:36:45 +02:00
Dimitris Panokostas
9d78ea1e07
bugfix: when doing a Rescan ROMs, restore the originally selected ROM afterwards (fixes #1451) 2024-10-03 21:29:28 +02:00
Dimitris Panokostas
db3953c758
enhancement: scan arcadia roms during a rescan operation 2024-10-03 21:19:59 +02:00
Dimitris Panokostas
1af931479b
enhancement: if deleting a config fails, show a message 2024-10-03 20:48:07 +02:00
Dimitris Panokostas
5cdc5b2ad9
bugfix: Custom roms would not show up in GUI, after loading a config (fixes #1450) 2024-10-03 20:47:47 +02:00
Dimitris Panokostas
f0c5ef0114
build: don't set the prefix for mac builds 2024-10-03 13:15:05 +02:00
Dimitris Panokostas
95b08a1cad
build: add cpack prefix to match install one
This ensures that if we use CPack, it will use the same prefix specified in the configure/build steps as well
2024-10-03 12:42:13 +02:00
Dimitris Panokostas
667367f191
enhancement: when updating the WHDBooter files, include JST and AmiQuit 2024-10-03 10:31:58 +02:00
Dimitris Panokostas
881f81a421
enhancement: Rename Update XML button to better indicate function
The button doesn't just download the XML, but all related files in the whdboot directory as well.
Update the label and help text accordingly
2024-10-03 09:41:44 +02:00
Dimitris Panokostas
865f430435
doc: move compiling instructions to wiki page 2024-10-03 09:11:25 +02:00
Dimitris Panokostas
fed7088428
ci: specify install prefix during configure step 2024-10-02 22:42:55 +02:00
Dimitris Panokostas
ae67dbfc0f
Revert "build: temp fix for setting data/lib dirs without hardcoding them in code"
This reverts commit 02bbe90b96012c91f9032824c71df66e13fa0b5a.
2024-10-02 22:40:49 +02:00
Dimitris Panokostas
02bbe90b96
build: temp fix for setting data/lib dirs without hardcoding them in code 2024-10-02 22:30:49 +02:00
Dimitris Panokostas
fdbfce5c9a
build: copy required dirs to build directory, so we can run it from there 2024-10-02 21:48:52 +02:00
Dimitris Panokostas
add4a3b6b7
ci: remove auto-assign workflow 2024-10-02 16:30:47 +02:00
Dimitris Panokostas
32318ce54c
refactor: remove hardcoded /usr/local/lib path 2024-10-02 16:25:29 +02:00
Dimitris Panokostas
6f7cd2d926
Merge branch 'master' into preview 2024-10-02 16:22:46 +02:00
Adam Sampson
e0766f8b1e
build: don't hardcode /usr prefix in the source (#1456)
The new installation rules respect CMAKE_INSTALL_PREFIX and the other
GNUInstallDirs variables, but the prefix was hardcoded as /usr in
several places in osdep/amiberry.cpp, so it wouldn't actually work if
installed to a different prefix.

Define AMIBERRY_DATADIR and AMIBERRY_LIBDIR in CMakeLists.txt, and use
these instead of the hardcoded paths.
2024-10-02 16:22:15 +02:00
Dimitris Panokostas
5801b36a85
doc: updated readme with install instructions 2024-10-02 15:21:19 +02:00
Dimitris Panokostas
fe214919a7
enhancement: check for Plugins in more places
- Check for env variable AMIBERRY_PLUGINS_DIR first
- Check in /usr/local/lib/amiberry next
- then check in /usr/lib/amiberry as before

This should cover cases of local builds where "make install" was used, but also custom environments where one can use the env variable to point that path anywhere they need.
2024-10-02 15:16:40 +02:00
Dimitris Panokostas
14f1f38048
bugfix: DEB package was missing our libs 2024-10-02 11:07:38 +02:00
Dimitris Panokostas
3e5aaff011
refactor: use version string from CMake file 2024-10-01 14:31:32 +02:00
Dimitris Panokostas
7ed80a5c0c
build: silence warnings for unused arguments on macOS builds 2024-10-01 14:14:36 +02:00
Dimitris Panokostas
1b23d748df
Merge branch 'preview' 2024-10-01 11:57:11 +02:00
Dimitris Panokostas
56af4867d7
ci: add ubuntu builds to the releases 2024-10-01 11:56:29 +02:00