Commit Graph

923 Commits

Author SHA1 Message Date
Manav Rathi
914802f057 CL 2025-02-05 10:01:15 +05:30
Manav Rathi
c48963244d User facing 2025-02-04 08:53:46 +05:30
Manav Rathi
18cc16bcc0 Use preferred casing of Wasm
From webassembly.org

> WebAssembly (abbreviated _Wasm_) is ...
2025-02-03 11:15:00 +05:30
Manav Rathi
495c950386 [desktop] Fix ARM build
Regression introduced yesterday - d37675cc57
2025-01-31 08:43:00 +05:30
Manav Rathi
892f130580 [desktop] Replace ImageMagick with vips
This has already been done, this PR is just final cleanup.
2025-01-30 13:37:36 +05:30
Manav Rathi
bed645044b [desktop] Fix download path during install 2025-01-30 11:38:43 +05:30
Manav Rathi
d37675cc57 [desktop] im => vips
More cleanup is pending, once we give this nightly a go.
2025-01-30 08:20:11 +05:30
Manav Rathi
adffe6362a [desktop] Routine dependency updates 2025-01-29 17:41:54 +05:30
Manav Rathi
167807c758 [desktop] Don't assume a particular position for the open URL arg
Ref: https://github.com/electron/electron/issues/20322
2025-01-29 17:03:14 +05:30
Manav Rathi
481d3e3700 Note 2025-01-29 10:33:35 +05:30
Manav Rathi
dcd920cbb4 wip patch 2025-01-29 09:40:35 +05:30
Manav Rathi
efa6d0289d Mention the conclusion after experimenting with alternatives 2025-01-29 08:09:30 +05:30
Manav Rathi
cd93cf1be6 Cleanup 2025-01-28 17:02:40 +05:30
Manav Rathi
8e653912cd x64 variant 2025-01-28 16:51:51 +05:30
Manav Rathi
80f64b2f8c t2 2025-01-28 16:51:51 +05:30
Manav Rathi
b022d0292f Take 1 2025-01-28 16:51:51 +05:30
Manav Rathi
d12aad2817 The musl variant seems to still link to the c lib dynamically
Sure there'd be a way to resolve this, but for now revert to the normal variant

ldd bin/vips
	/lib/ld-musl-aarch64.so.1 (0xffffa9868000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xffffa96a9000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xffffa9684000)
	libc.so => /lib/ld-musl-aarch64.so.1 (0xffffa9868000)
2025-01-28 16:51:51 +05:30
Manav Rathi
55281b7e32 thumb 2025-01-28 16:51:51 +05:30
Manav Rathi
a155855b45 Note 2025-01-28 16:51:51 +05:30
Manav Rathi
81206c0e36 Patch 2025-01-28 16:51:51 +05:30
Manav Rathi
d0738f0988 Nope 2025-01-28 16:51:51 +05:30
Manav Rathi
4d65e3b233 Try with libvips-packaging
https://github.com/kleisauke/libvips-packaging/

Found via this comment:

> The build script at
> https://github.com/kleisauke/libvips-packaging/blob/main/build/lin.sh can be
> used as a reference to compile libvips and its dependencies as a single,
> statically-linked shared library.
>
> https://github.com/libvips/libvips/discussions/3426#discussioncomment-5507520
2025-01-28 16:51:51 +05:30
Manav Rathi
a6f2eae418 static more 2025-01-28 16:51:51 +05:30
Manav Rathi
84e16057b6 Trying with everything disabled 2025-01-28 16:51:51 +05:30
Manav Rathi
b91ee793bf static lib 2025-01-28 16:51:51 +05:30
Manav Rathi
58b300d8d4 LF 2025-01-24 17:46:53 +05:30
Manav Rathi
f049aa96fc Try with a alpine build to see if we can get a static binary 2025-01-24 06:33:24 +05:30
Manav Rathi
ed7bc529f5 Same results as trying manually with staticx
the staticx produced binary takes 0.5 secs to launch, as compared the one we get by normally compiling.
2025-01-24 06:33:24 +05:30
Manav Rathi
8fa4e8e2d1 Try using staticx on vips binary
Dockerfile from https://github.com/joshuarli/static-builders
2025-01-24 06:33:24 +05:30
Manav Rathi
647a04af96 Prepare build env 2025-01-24 06:33:24 +05:30
Manav Rathi
a4e49daeb1 Inspectable layer 2025-01-24 06:33:24 +05:30
Manav Rathi
c4c8447f54 Sample 2025-01-24 06:33:24 +05:30
Manav Rathi
9451124c38 Init 2025-01-24 06:33:24 +05:30
Manav Rathi
6e5e28d2bd [desktop] Attempt to fix macOS universal build after electron builder update
CI failures since updating Electron building (and Electron):

 • packaging       platform=darwin arch=arm64 electron=34.0.0 appOutDir=dist/mac-universal-arm64-temp
  • packaging       platform=darwin arch=universal electron=34.0.0 appOutDir=dist/mac-universal
  ⨯ pattern is too long  failedTask=build stackTrace=TypeError: pattern is too long
2025-01-22 13:16:30 +05:30
Manav Rathi
4abfb5b8bd Don't return falsey 2025-01-22 12:59:54 +05:30
Manav Rathi
e0eae10007 Use URL instead of repeating contents 2025-01-22 12:41:39 +05:30
Manav Rathi
47ec5e78c0 [desktop] Fix incomplete build being generated
...because of returning false from our build hook.
2025-01-22 12:39:33 +05:30
Manav Rathi
1e8750c330 [desktop] Update build for latest electron builder
Since the eb update, the CI job fails with errors like

    unable to copy, file is symlinked outside the package  source=out/404.html realPathFile=/Users/runner/work/photos-desktop/photos-desktop/web/apps/photos/out/404.html

    Error: Cannot copy file (xxx.js) symlinked to file (xxx.js) outside the package as that violates asar security integrity
      at writeFileOrProcessSymlink (/Users/runner/work/photos-desktop/photos-desktop/desktop/node_modules/app-builder-lib/src/asar/asarUtil.ts:126:15)
2025-01-22 09:42:08 +05:30
Manav Rathi
d413c1d8dc LF 2025-01-22 08:16:23 +05:30
Manav Rathi
0466067c55 [desktop] Depedencies upgrade
In particular,

* Electron 34 is needed to fix the Flatpak file picker issue -
  "Fixed file chooser dialogs for flaptak applications. #44681"
  https://github.com/electron/electron/pull/44681

* Electron builder 26 is needed for the FPM app armour profiles
  https://github.com/electron-userland/electron-builder/issues/8635#issuecomment-2462586534
2025-01-22 08:08:30 +05:30
Manav Rathi
b1c62f6c93 [desktop] IM 7 - Handle CI rebuilds, and add windows extension
- CI builds both arch binaries in one go, so the singular yarn install hook is not enough
- Without the extension windows doesn't run it
2025-01-22 07:49:18 +05:30
Manav Rathi
e7d6362eaa Make prettier happy 2025-01-21 16:32:03 +05:30
Manav Rathi
85cf1de12c All current os/arch combinations are handled 2025-01-21 16:28:35 +05:30
Manav Rathi
3d2b8974df Temporary tracing 2025-01-21 16:24:03 +05:30
Manav Rathi
d836e190e3 Use the updated im 7 2025-01-21 16:21:49 +05:30
Manav Rathi
75509ff339 exec 2025-01-21 15:56:04 +05:30
Manav Rathi
c731833863 Use a node script to avoid dealing with Windows nonsense 2025-01-21 15:36:00 +05:30
Manav Rathi
cf27dd5889 Outline 2025-01-21 14:54:24 +05:30
Manav Rathi
0309db9466 [desktop] Include branding colors in Flathub MetaInfo
https://docs.flathub.org/blog/introducing-app-brand-colors/#adding-brand-colors
2025-01-20 14:04:21 +05:30
Manav Rathi
a164f1b839 [web] Deploy only on weekdays 2025-01-17 14:48:12 +05:30