Commit graph

15 commits

Author SHA1 Message Date
wheremyfoodat
35cb199ec9
Fix derp 2023-08-21 22:53:17 +03:00
wheremyfoodat
1b7cc28440
Maybe fix plist 2023-08-21 22:50:16 +03:00
Thankful Machine
92ac38bad9 Move mac app codesigning into GitHub workflows
The app cannot be modified after signing, and there are some files copied into
the app bundle during the CI workflows, so move signing as the last modifying
step there.
2023-02-06 20:33:25 -08:00
Thankful Machine
8f0f41291d Improve mac app layout
When downloading an app or disk image from the Web, files get the
`com.apple.quarantine` attribute which signals to the OS that the app may be
unsafe. The user can still let the app to run from Finder, which removes the
attribute and allows future runs to proceed without a prompt.

However, if an app is irregular, the user can't approve it normally and it may
get labeled as "damaged". The workaround is to remove the attribute with
something like `xattr` in the terminal but that isn't necessary.

Change the `create-app.sh` script to bring the app into a more typical form for
macOS and remove files that might interfere with code-signing or needlessly
increase the app's size.

- Don't symlink the `pcsx-redux` binary. Make the real binary exist at
  `./Contents/MacOS/PCSX-Redux`.
  - Remove the now empty `./Contents/Resources/bin`.
- Call the app icon `AppIcon.icns` as is customary.
  - Remove source images after constructing the app icon.
- Move dylibs into `./Contents/Frameworks`.
  - Add this path to the executable's `@rpath`.
  - Use `@rpath` instead of `@executable_path` for library locations.
- Removing the quarantine attribute during the build has no effect.
- Remove the Linux desktop things from
  `./Contents/Resources/share/applications` as it isn't necessary for macOS.
- Ad-hoc codesign the app after making changes.
  This must *always* be the very last step.

Update the README about this.
2023-02-04 22:19:39 -08:00
Caleb Yates
ee01498293
Strip com.apple.quarantine attribute on final App 2022-03-26 23:03:49 -05:00
Nicolas "Pixel" Noble
68ba15c1f0 Fixing Unix build. 2022-03-11 18:58:04 -08:00
Nicolas 'Pixel' Noble
8a5904e255 Adding capstone dependency. 2021-12-17 10:32:50 -08:00
Nicolas Pixel Noble
03158f1015 Removing SDL 2021-08-29 15:36:43 -07:00
Nicolas 'Pixel' Noble
60062f847b HDPI MacOS support. 2021-07-31 19:06:13 -07:00
Nicolas Noble
8dd99f80b0
Better MacOS icon generation. 2021-06-08 09:09:19 -07:00
Nicolas 'Pixel' Noble
35d7cc8218 Properly bundling all dependencies. 2021-06-05 22:29:36 -07:00
Nicolas 'Pixel' Noble
6b4fdf8dd0 MacOS app packaging. 2021-06-05 16:36:55 -07:00
Nicolas 'Pixel' Noble
bedaa5c545 Fixing Unix builds. 2021-02-26 19:32:54 -08:00
Emmanuel Peralta
67178e2d09
Adds pkg-config to brew-installed dependencies. 2020-05-21 16:59:10 +02:00
Emmanuel Peralta
7cc7f214ff
Adds Github Actions workflow for macOS. 2020-05-21 16:56:27 +02:00