78 Commits

Author SHA1 Message Date
Dimitris Panokostas
40e73ea8ae
1440 create home directories on startup (#1443)
* build: move gamecontrollerdb.txt to controllers directory

* enhancement: create home directories if they don't exist

- After the directories have been decided (data, home, config), create those in the specified HOME directory, if they don't exist
- If they didn't exist, and we had the original contents installed in /usr/share/amiberry/<dir>, copy those over and change permissions. This ensures that the distributed files like the AROS ROMs, the WHDLoad booter and the controllerdb files, are always there in the home dir.

* chore: we no longer need to copy all the directories in the package

Now that we create the home directories on startup, we don't need the empty ones in the package anymore.
Only those that contain something can stay

* build: add stripping of binaries

* chore: ignore .idea folder

* bugfix: WHDLoad booter A1200 config was incorrect

After the additional entries in A1200 configs and models, the booter was set to incorrectly use a config with a Blizzard accelerator. Since that requires a board ROM, which might not be available, it has to change.

Using the default A1200 config instead, and setting Fast RAM to 8MB after that.

* build: install icon in shared location

When preparing the .deb package, the application icon should go in the /usr/share/icons/hicolor/... location, to adhere with established standards

* build: use ~/Amiberry instead of ~/.amiberry

Perhaps it's best to use a non-hidden folder for amiberry directories, make it easier on the users to find it

* refactor: use ~/Amiberry/conf instead of ~/.config/amiberry for config files

* refactor: change desktop file icon reference

Should be possible to use just "amiberry" now, that the icon file is copied in the right location

* chore: fix references to github.com/midwan -> github.com/BlitterStudio

* refactor: move plugins dir to /usr/lib/amiberry in the .deb package

If we are using a system-wide installation, with the .deb package, use /usr/lib/amiberry for plugins.
Check the HOME/Amiberry/plugins next, create it if necessary.
Fallback to the startup directory if that's not available (probably never).

* refactor: only move the abr folder in the destination plugins

When using the .deb package, only the abr folder should be copied in the destination.
Otherwise, we get a plugins directory created there as well

* refactor: Change Kickstarts to Roms

The Kickstarts directory can contain different kind of ROMs, not only kickstarts.
It's best if we rename it accordingly

* build: CPack updates

- Removed unneeded line
- added CPACK_DEBIAN_PACKAGE_ARCHITECTURE
- Added Extended Description
- Fixed description starts with package name

* ci: rename architectures properly

Let's keep the names identical to what dpkg reports

* build: fix some lintian errors

- location of plugins
- section

* build: added copyright and changelog in DEB

* build: fix location of debian files

* build: add copyright notice, fix changelog

* build: changelog should be compressed

* build: extend the description

* build: make the description lines shorter...

* build: description should not be longer than 80 chars

* build: remove timestamp from changelog

Fix another lintian complaint

* build: description again

* bugfix: the plugins dir was not correctly set

* refactor: Updated desktop entry to handle MimeTypes

* build: remove duplicate key in desktop file

* build: add more mimetypes to desktop file
2024-09-28 09:54:50 +02:00
Dimitris Panokostas
6846dac813
ci: fixed case 2024-09-25 15:21:01 +02:00
Dimitris Panokostas
97ae4b3791
ci: no need to checkout submodules for macos builds anymore 2024-09-25 15:14:53 +02:00
Dimitris Panokostas
d0056f77cd
Merge Preview v6.x to master
V5 now lives in a separate repo: https://github.com/BlitterStudio/amiberry-lite
2024-09-23 19:42:29 +02:00
dependabot[bot]
754e524bea
build(deps): bump actions/download-artifact in /.github/workflows (#1419)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4.1.2 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4.1.2...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-04 08:02:50 +02:00
Dimitris Panokostas
0cc9b55a43
refactor: Move "abr" under plugins directory
- Handle "abr" as one of the plugins, instead of having it living on a directory in the home dir.
- Moved directory, updated paths and macOS scripts accordingly.
- get_plugin_path() now returns the actual plugins path
2024-09-02 21:30:52 +02:00
Dimitris Panokostas
576a2d2e65
ci: Remove Manjaro RPI4 target from releases
Only AmiKit was using that, and it moved to Debian12 with the new update
2024-09-01 18:11:43 +02:00
Dimitris Panokostas
471fb51cb2
Fix capsimg (#1374)
* Remove capsimg submodule

* Add capsimg sources

* Add dependencies in Makefile and CMakeLists.txt to build libcapsimage.so

* Fix path in makefile

* Add libs to make clean also

* Automatically build capsimg as well

* Remove extra step to build capsimg from pipeline
2024-06-28 00:14:08 +02:00
Dimitris Panokostas
96dd8d083b
Update c-cpp.yml 2024-06-16 19:52:19 +02:00
Dimitris Panokostas
eee5bacccf
Update c-cpp.yml 2024-06-16 19:48:46 +02:00
Dimitris Panokostas
ca3d06dc3d
Update c-cpp.yml 2024-06-16 19:43:41 +02:00
Dimitris Panokostas
054b8fb7f9
Update c-cpp.yml
Try adding a `brew upgrade` step
2024-06-16 19:38:57 +02:00
Dimitris Panokostas
8c14ac43c8
ci: fix apple silicon build 2024-06-13 22:37:55 +02:00
Dimitris Panokostas
66c41f823b
ci: Rename macOS M1 to macOS Apple Silicon 2024-06-13 22:28:37 +02:00
Dimitris Panokostas
73d3fc0e8c
Package macOS bundles on each build 2024-06-11 15:43:46 +02:00
Dimitris Panokostas
9c3f9efac5
ci: Removed Buster platforms from pipeline targets
Debian Buster is EOL soon, might as well remove it from the pipelines
2024-06-04 19:38:35 +02:00
Dimitris Panokostas
1e081a3728
feat: Merge latest updates from master
- Merged latest FloppyBridge version
- FloppyBridge is now an external library (plugin)
- Added plugins directory, for external libraries (capsimg.so, libfloppybridge.so)
- Updated Makefile and CMakeLists files
- Other minor updates from preview
2024-05-24 16:45:50 +02:00
Dimitris Panokostas
52656e0ce4
bugfix: add missing directories in packaging (fixes #1306) 2024-05-06 21:50:55 +02:00
Dimitris Panokostas
d12dd946c1
Use macos-13 for intel builds 2024-04-28 16:58:14 +02:00
Dimitris Panokostas
934c5f9e13
Test brew update for MacOS runner 2024-04-28 16:48:31 +02:00
Dimitris Panokostas
d537ee943e
ci: Remove RK3399 from pre-compiled binaries list 2024-02-29 23:29:51 +01:00
Dimitris Panokostas
b1d412fc80
ci: Switch macOS x86 runner to macOS-latest, instead of macOS-14
There are still issues with macOS-14 runners it seems, reverting back to latest
2024-02-27 22:38:17 +01:00
Dimitris Panokostas
13c339093c
ci: Switch MacOS x84_64 runner to MacOS 14 also 2024-02-27 22:06:50 +01:00
Dimitris Panokostas
144de3aa1f
ci: Fix missing autoheader in M1 runner 2024-02-27 22:06:50 +01:00
Dimitris Panokostas
56553f397c
ci: Add Apple Silicon runner 2024-02-27 22:06:50 +01:00
Dimitris Panokostas
78d80f6106
ci: fixed deprecated download-artifact step 2024-02-17 19:47:21 +01:00
Dimitris Panokostas
8712c6eaed
ci: upgrade upload-artifact action to v4
v3 uses an older nodejs version which is now deprecated
2024-01-26 20:08:46 +01:00
Dimitris Panokostas
b8e16e14e4
ci: refactor artifact names, fix builds for tags 2024-01-14 15:53:26 +01:00
Dimitris Panokostas
d7d2bc8d5a
ci: fixed startsWith was inverse 2023-12-16 14:08:08 +01:00
Dimitris Panokostas
8cd39f1d5d
ci: conditional build updates 2023-12-15 23:40:31 +01:00
Dimitris Panokostas
0d16c8384c
ci: create pre-release on tag, only 64-bit targets 2023-12-15 23:12:39 +01:00
Dimitris Panokostas
bba7558911
ci: removed action for getting tag, use github built-in ref instead 2023-12-15 22:25:56 +01:00
Dimitris Panokostas
7d722dfbf4
ci: include armhf targets when using a tag (for releases) 2023-12-15 19:10:35 +01:00
Dimitris Panokostas
5c54536997
ci: only build 32-bit targets for master branch 2023-12-10 21:09:03 +01:00
Dimitris Panokostas
f4fac4eb9c
ci: include preview branch in automated builds 2023-12-10 20:25:54 +01:00
Dimitris Panokostas
5819fb2b59
ci: skip brew update step in macOS
See if this fixes the recent build errors
2023-12-10 20:19:47 +01:00
Dimitris Panokostas
873103af0d
ci: removed flatpak from our c-cpp workflow 2023-11-19 15:58:36 +01:00
Dimitris Panokostas
9715b8225c
ci: Remove flatpak from Github releases (they will be hosted on Flathub instead)
Flatpak releases will be provided by Flathub, so we don't need them in here as well.
The workflow will retain the flatpak build on commits, for testing purposes.
2023-11-14 12:47:04 +01:00
Dimitris Panokostas
5c7bbff6d8
ci: fixes for aarch64 flatpak build
- Updated tag and commit SHA
- Removed only x86_64 arch option
- Updated cpp workflow to better indicate the name of the job (it's no longer x86_64 exclusive)
2023-11-14 12:15:07 +01:00
Dimitris Panokostas
034d688d84
ci: Build Flatpak for both x86_64 and aarch64 2023-11-14 11:58:42 +01:00
Dimitris Panokostas
036bd5518f
ci: use Github hosted macOS runner
This is still for x86_64 only, for now. If Github provides M1 (non-large) runners, that can be added also
2023-11-14 11:26:02 +01:00
Dimitris Panokostas
b7991a7af6
pick up artifacts from subdirs 2023-11-10 00:28:11 +01:00
Dimitris Panokostas
91bfc07c90
don't upload artifacts twice
Only upload artifacts if we're building without a tag (no release) OR with a tag, not both
2023-11-09 23:50:49 +01:00
Dimitris Panokostas
5bb088816d
download all artifacts in the current dir 2023-11-09 23:28:22 +01:00
Dimitris Panokostas
8b9927a22d
Update c-cpp.yml
Download artifacts before release
2023-11-09 23:03:29 +01:00
Dimitris Panokostas
68cfcaddeb
Update c-cpp.yml
Fix release
2023-11-09 22:35:30 +01:00
Dimitris Panokostas
d3aa9eae8e
ci: updated Github workflow, include flatpak in releases
- Refactored workflow to separate releases from builds
- Renamed packages to better reflect <distro>-<arch>-<cpu> in the filename
- Include flatpak (x86_64 only for now) in releases
2023-11-09 20:02:35 +01:00
Dimitris Panokostas
00ba774b95
ci: Added RPI5 in automated builds
Added RPI5 targets in automated Docker builds.
Both 32-bit and 64-bit, built on Debian Bookworm.
2023-10-25 15:14:57 +02:00
Dimitris Panokostas
6d30665149
ci: fixed remaining incorrect docker image references 2023-10-24 19:25:20 +02:00
Dimitris Panokostas
8dd62b9c14
ci: fixed incorrect docker image reference 2023-10-24 19:23:38 +02:00