photostructure 0.6.0-alpha.2 → 2026.4.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +31 -29
- package/README.md +20 -8
- package/SECURITY.md +29 -0
- package/VERSION.json +12 -0
- package/bin/bootstrap.js +9 -0
- package/bin/fix.js +9 -0
- package/bin/info.js +9 -0
- package/bin/list.js +9 -0
- package/bin/logcat.js +9 -0
- package/bin/logtail.js +9 -0
- package/bin/main.js +9 -0
- package/bin/photostructure.js +9 -0
- package/bin/sync.js +9 -0
- package/bin/web.js +9 -0
- package/bin/worker.js +9 -0
- package/data/cuss.txt.br +0 -0
- package/data/icc/AdobeCompat-v2.icc +0 -0
- package/data/icc/AppleCompat-v2.icc +0 -0
- package/data/icc/ColorMatchCompat-v2.icc +0 -0
- package/data/icc/DisplayP3-v2-magic.icc +0 -0
- package/data/icc/DisplayP3-v2-micro.icc +0 -0
- package/data/icc/DisplayP3-v4.icc +0 -0
- package/data/icc/DisplayP3Compat-v2-magic.icc +0 -0
- package/data/icc/DisplayP3Compat-v2-micro.icc +0 -0
- package/data/icc/DisplayP3Compat-v4.icc +0 -0
- package/data/icc/ProPhoto-v2-magic.icc +0 -0
- package/data/icc/ProPhoto-v2-micro.icc +0 -0
- package/data/icc/ProPhoto-v4.icc +0 -0
- package/data/icc/Rec2020-v2-magic.icc +0 -0
- package/data/icc/Rec2020-v2-micro.icc +0 -0
- package/data/icc/Rec2020-v4.icc +0 -0
- package/data/icc/Rec2020Compat-v2-magic.icc +0 -0
- package/data/icc/Rec2020Compat-v2-micro.icc +0 -0
- package/data/icc/Rec2020Compat-v4.icc +0 -0
- package/data/icc/Rec709-v2-magic.icc +0 -0
- package/data/icc/Rec709-v2-micro.icc +0 -0
- package/data/icc/Rec709-v4.icc +0 -0
- package/data/icc/WideGamutCompat-v2.icc +0 -0
- package/data/icc/_info.md +49 -0
- package/data/icc/license +116 -0
- package/data/icc/readme.md +142 -0
- package/data/icc/sGrey-v2-magic.icc +0 -0
- package/data/icc/sGrey-v2-micro.icc +0 -0
- package/data/icc/sGrey-v2-nano.icc +0 -0
- package/data/icc/sGrey-v4.icc +0 -0
- package/data/icc/sRGB-v2-magic.icc +0 -0
- package/data/icc/sRGB-v2-micro.icc +0 -0
- package/data/icc/sRGB-v2-nano.icc +0 -0
- package/data/icc/sRGB-v4.icc +0 -0
- package/data/icc/scRGB-v2.icc +0 -0
- package/data/migrations/models/20181030_models.sql +151 -0
- package/data/migrations/models/20190417_rotation.sql +2 -0
- package/data/migrations/models/20190425_merged_assets.sql +11 -0
- package/{migrations → data/migrations}/models/20190426_clean_sha.sql +4 -4
- package/data/migrations/models/20190426_lowercase_psnet_hostname.sql +1 -0
- package/{migrations → data/migrations}/models/20190727_find_by_ca_and_geo.sql +3 -1
- package/data/migrations/models/20190730_session.sql +7 -0
- package/data/migrations/models/20190922_numeric_captured_at.sql +1 -0
- package/data/migrations/models/20190923_asset_file_v2_nofk.sql +107 -0
- package/data/migrations/models/20191013_asset_v2_nofk.sql +81 -0
- package/data/migrations/models/20200104_video_duration.sql +9 -0
- package/data/migrations/models/20200116_heartbeat.sql +9 -0
- package/data/migrations/models/20200127_spread_modes.sql +1 -0
- package/data/migrations/models/20200128_asset_file_v3_nofk.sql +143 -0
- package/data/migrations/models/20200130_advisory_lock.sql +21 -0
- package/data/migrations/models/20200211_updateCount.sql +2 -0
- package/data/migrations/models/20200512_asset_file_v4_nofk.sql +145 -0
- package/data/migrations/models/20200515_drop_merged_asset.sql +1 -0
- package/data/migrations/models/20200816_normalize_asset_file_uris.sql +1 -0
- package/data/migrations/models/20200823_add_asset_excluded.sql +11 -0
- package/data/migrations/models/20200825_fix_root_tags.sql +1 -0
- package/data/migrations/models/20200826_dedupe_tag_paths.sql +1 -0
- package/data/migrations/models/20200827_tag_v2_nofk.sql +35 -0
- package/data/migrations/models/20200923_suffix_tag_paths.sql +1 -0
- package/data/migrations/models/20200927_progress_v2.sql +23 -0
- package/data/migrations/models/20201006_progress_meta.sql +16 -0
- package/data/migrations/models/20201007_operation.sql +12 -0
- package/data/migrations/models/20201023_dedupe_tag_paths.sql +1 -0
- package/data/migrations/models/20201026_normalize_asset_file_uris.sql +1 -0
- package/data/migrations/models/20201030_add_tag_counts.sql +5 -0
- package/data/migrations/models/20201106_normalize_tag_paths.sql +1 -0
- package/data/migrations/models/20201112_tag_display_name.sql +2 -0
- package/data/migrations/models/20201113_drop_tc_tables.sql +1 -0
- package/data/migrations/models/20201211_tag_description.sql +5 -0
- package/data/migrations/models/20210322_sha_blocklist.sql +6 -0
- package/data/migrations/models/20210323_create_tag_fts.sql +1 -0
- package/data/migrations/models/20210324_asset_fave_delete.sql +20 -0
- package/data/migrations/models/20210531_asset_duration.sql +20 -0
- package/data/migrations/models/20210604_changed_tag.sql +7 -0
- package/data/migrations/models/20210627_changed_tag_updated_at.sql +2 -0
- package/data/migrations/models/20210827_asset_excluded_at.sql +19 -0
- package/data/migrations/models/20210930_asset_file_rating.sql +2 -0
- package/data/migrations/models/20210930_asset_revision.sql +16 -0
- package/data/migrations/models/20211025_ts_cleanup.sql +11 -0
- package/data/migrations/models/20220222_rebuild_rotated_heic.sql +2 -0
- package/data/migrations/models/20220922_rebuild_videos.sql +3 -0
- package/data/migrations/models/20220923_add_asset_file_mode_pct.sql +63 -0
- package/data/migrations/models/20221031_add_asset_file_hashes.sql +5 -0
- package/data/migrations/models/20231105_copy_asset_duration.sql +3 -0
- package/data/migrations/models/20231115_strict_nofk.sql +674 -0
- package/data/migrations/models/20231116_rebuild_tag_asset_counts.sql +1 -0
- package/data/migrations/models/20240115_task.sql +18 -0
- package/data/migrations/models/20240131_drop_operation_version.sql +35 -0
- package/data/migrations/models/20240201_create_tag_fts.sql +1 -0
- package/data/migrations/models/20240307_rebuild_progress_nofk.sql +59 -0
- package/data/migrations/models/20240313_rebuild_null_island.sql +3 -0
- package/data/migrations/models/20240723_add_asset_file_image_data_hash.sql +2 -0
- package/data/migrations/models/20240920_drop_task.sql +1 -0
- package/data/migrations/models/20240929_metadata_local.sql +3 -0
- package/data/migrations/models/20250421_asset_tag_fk_indexes.sql +21 -0
- package/data/migrations/models/20250421_tag_hierarchy.sql +13 -0
- package/data/migrations/models/20250422_schema_v3.sql +170 -0
- package/data/migrations/models/20250423_schema_v3_backfill_nofk.sql +1 -0
- package/data/migrations/models/20250929_indexes.sql +80 -0
- package/data/migrations/models/20260117_scan_generation.sql +31 -0
- package/data/migrations/models/20260122_fix_scan_generation_idx.sql +5 -0
- package/data/migrations/models/20260204_vec0_captured_at_local.sql +10 -0
- package/data/migrations/models/20260217_reaggregate_to_validate_siblings.sql +8 -0
- package/data/migrations/models/20260321_captured_at_src_detail.sql +3 -0
- package/data/migrations/models/20260322_captured_at_src_backfill.sql +2 -0
- package/data/migrations/models/20260403_drop_tag_fts.sql +5 -0
- package/data/migrations/models/20260425_volume_label.sql +5 -0
- package/data/migrations/models/20260426_vec0_bname.sql +6 -0
- package/data/models-schema.json +907 -0
- package/data/models-schema.sql +268 -0
- package/data/words.txt.br +0 -0
- package/defaults.env +6376 -0
- package/package.json +47 -25
- package/photostructure +26 -27
- package/public/192.png.gz +0 -0
- package/public/3rd-party-licenses.html.gz +0 -0
- package/public/3rd-party-licenses.txt.gz +0 -0
- package/public/512.png.gz +0 -0
- package/public/app/Array.js +8 -0
- package/public/app/Array.js.gz +0 -0
- package/public/app/BabyMarkdown.js +14 -0
- package/public/app/BabyMarkdown.js.gz +0 -0
- package/public/app/DropDown.vue_vue_type_script_setup_true_lang.js +12 -0
- package/public/app/DropDown.vue_vue_type_script_setup_true_lang.js.gz +0 -0
- package/public/app/HealthChecks.js +8 -0
- package/public/app/HealthChecks.js.gz +0 -0
- package/public/app/Lazy.js +8 -0
- package/public/app/Lazy.js.gz +0 -0
- package/public/app/PageActionsMenu.vue_vue_type_script_setup_true_lang.js +8 -0
- package/public/app/PageActionsMenu.vue_vue_type_script_setup_true_lang.js.gz +0 -0
- package/public/app/ProgressState.js +8 -0
- package/public/app/Random.js +8 -0
- package/public/app/SSEChannels.js +8 -0
- package/public/app/SSEChannels.js.gz +0 -0
- package/public/app/Search.js +8 -0
- package/public/app/Search.js.gz +0 -0
- package/public/app/StickyHeader.js +8 -0
- package/public/app/StickyHeader.js.gz +0 -0
- package/public/app/Tag.js +8 -0
- package/public/app/Tag.js.gz +0 -0
- package/public/app/_plugin-vue_export-helper.js +8 -0
- package/public/app/_plugin-vue_export-helper.js.gz +0 -0
- package/public/app/about.css +8 -0
- package/public/app/about.css.gz +0 -0
- package/public/app/about.js +8 -0
- package/public/app/about.js.gz +0 -0
- package/public/app/app.css +8 -0
- package/public/app/app.css.gz +0 -0
- package/public/app/app.js +12 -0
- package/public/app/app.js.gz +0 -0
- package/public/app/health.css +8 -0
- package/public/app/health.css.gz +0 -0
- package/public/app/health.js +10 -0
- package/public/app/health.js.gz +0 -0
- package/public/app/logs.css +8 -0
- package/public/app/logs.css.gz +0 -0
- package/public/app/logs.js +8 -0
- package/public/app/logs.js.gz +0 -0
- package/public/app/onReady.js +8 -0
- package/public/app/platform.js +8 -0
- package/public/app/roboto-mono-v22-latin-700.woff2.gz +0 -0
- package/public/app/roboto-mono-v22-latin-regular.woff2.gz +0 -0
- package/public/app/roboto-v30-latin-700.woff2.gz +0 -0
- package/public/app/roboto-v30-latin-700italic.woff2.gz +0 -0
- package/public/app/roboto-v30-latin-italic.woff2.gz +0 -0
- package/public/app/roboto-v30-latin-regular.woff2.gz +0 -0
- package/public/app/settings.css +8 -0
- package/public/app/settings.css.gz +0 -0
- package/public/app/settings.js +8 -0
- package/public/app/settings.js.gz +0 -0
- package/public/app/splash.css +8 -0
- package/public/app/splash.css.gz +0 -0
- package/public/app/splash.js +8 -0
- package/public/app/splash.js.gz +0 -0
- package/public/app/sse-worker.js +8 -0
- package/public/app/sse-worker.js.gz +0 -0
- package/public/app/sync.css +8 -0
- package/public/app/sync.css.gz +0 -0
- package/public/app/sync.js +12 -0
- package/public/app/sync.js.gz +0 -0
- package/public/app/toast.js +9 -0
- package/public/app/toast.js.gz +0 -0
- package/public/app/useAnchorHighlight.js +8 -0
- package/public/app/useSectionPersistence.js +8 -0
- package/public/app/useSectionPersistence.js.gz +0 -0
- package/public/apple-touch-icon.png.gz +0 -0
- package/public/browserconfig.xml +9 -0
- package/public/eula.html +25 -26
- package/public/favicon-16x16.png.gz +0 -0
- package/public/favicon-32x32.png.gz +0 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/roboto-mono-v22-latin-700.woff2.gz +0 -0
- package/public/fonts/roboto-mono-v22-latin-regular.woff2.gz +0 -0
- package/public/fonts/roboto-v30-latin-700.woff2.gz +0 -0
- package/public/fonts/roboto-v30-latin-700italic.woff2.gz +0 -0
- package/public/fonts/roboto-v30-latin-italic.woff2.gz +0 -0
- package/public/fonts/roboto-v30-latin-regular.woff2.gz +0 -0
- package/public/icon.svg.gz +0 -0
- package/public/images/1.png.gz +0 -0
- package/public/images/128.png +0 -0
- package/public/images/22-Template.png.gz +0 -0
- package/public/images/22-Template@2x.png.gz +0 -0
- package/public/images/22-Template@3x.png.gz +0 -0
- package/public/images/22-blue.png.gz +0 -0
- package/public/images/22-blue@2x.png.gz +0 -0
- package/public/images/22-blue@3x.png.gz +0 -0
- package/public/images/22-dark.png +0 -0
- package/public/images/22-dark@2x.png +0 -0
- package/public/images/22-dark@3x.png +0 -0
- package/public/images/22-gradient.png.gz +0 -0
- package/public/images/22-gradient@2x.png.gz +0 -0
- package/public/images/22-gradient@3x.png.gz +0 -0
- package/public/images/22-light.png +0 -0
- package/public/images/22-light@2x.png +0 -0
- package/public/images/22-light@3x.png +0 -0
- package/public/images/256.png +0 -0
- package/public/images/512.png.gz +0 -0
- package/public/images/64.png +0 -0
- package/public/images/antenna.svg.gz +0 -0
- package/public/images/article.svg.gz +0 -0
- package/public/images/baby.svg.gz +0 -0
- package/public/images/ballot-box.svg.gz +0 -0
- package/public/images/bank.svg.gz +0 -0
- package/public/images/bar-chart.svg.gz +0 -0
- package/public/images/beetle.svg.gz +0 -0
- package/public/images/birthday.svg.gz +0 -0
- package/public/images/bookmark-tabs.svg.gz +0 -0
- package/public/images/books-desat.svg.gz +0 -0
- package/public/images/books.svg.gz +0 -0
- package/public/images/busy-circle.svg.gz +0 -0
- package/public/images/busy-circles.svg.gz +0 -0
- package/public/images/busy-dots.svg.gz +0 -0
- package/public/images/busy.svg.gz +0 -0
- package/public/images/calendar.svg.gz +0 -0
- package/public/images/camera.svg.gz +0 -0
- package/public/images/card-box.svg.gz +0 -0
- package/public/images/card-index-dividers.svg.gz +0 -0
- package/public/images/cd.svg.gz +0 -0
- package/public/images/chart.svg.gz +0 -0
- package/public/images/check.svg.gz +0 -0
- package/public/images/checkered-flag.svg.gz +0 -0
- package/public/images/clear-256.png.gz +0 -0
- package/public/images/clear-64.png.gz +0 -0
- package/public/images/clock.svg.gz +0 -0
- package/public/images/computer.svg.gz +0 -0
- package/public/images/cpu.svg.gz +0 -0
- package/public/images/crane.svg.gz +0 -0
- package/public/images/cross-mark.svg.gz +0 -0
- package/public/images/disabled.svg.gz +0 -0
- package/public/images/dvd.svg.gz +0 -0
- package/public/images/emergency-light.svg.gz +0 -0
- package/public/images/error.svg.gz +0 -0
- package/public/images/expressionless-desat.svg.gz +0 -0
- package/public/images/expressionless.svg.gz +0 -0
- package/public/images/file-cabinet.svg.gz +0 -0
- package/public/images/fill.svg.gz +0 -0
- package/public/images/floppy.svg.gz +0 -0
- package/public/images/gift.svg.gz +0 -0
- package/public/images/green-check.svg.gz +0 -0
- package/public/images/green-radio.svg.gz +0 -0
- package/public/images/handshake.svg.gz +0 -0
- package/public/images/health.svg.gz +0 -0
- package/public/images/heart.svg.gz +0 -0
- package/public/images/home.svg.gz +0 -0
- package/public/images/homebrew-installer.png.gz +0 -0
- package/public/images/info.svg.gz +0 -0
- package/public/images/library.svg.gz +0 -0
- package/public/images/logo-blue.svg.gz +0 -0
- package/public/images/logo-circle.svg.gz +0 -0
- package/public/images/logo-dark-700pt.svg.gz +0 -0
- package/public/images/logo-dark.svg.gz +0 -0
- package/public/images/logo-gradient-gloss-512w.png.gz +0 -0
- package/public/images/logo-gradient-gloss.svg.gz +0 -0
- package/public/images/logo-gradient-square-512w.png.gz +0 -0
- package/public/images/logo-gradient.svg.gz +0 -0
- package/public/images/logo-horizontal-600w.png.gz +0 -0
- package/public/images/logo-horizontal-white.svg.gz +0 -0
- package/public/images/logo-horizontal.svg.gz +0 -0
- package/public/images/logo-lite.svg.gz +0 -0
- package/public/images/logo-plus-512w.png.gz +0 -0
- package/public/images/logo-plus-horizontal.svg.gz +0 -0
- package/public/images/logo-plus.svg.gz +0 -0
- package/public/images/logo-square.svg.gz +0 -0
- package/public/images/logo-white.svg.gz +0 -0
- package/public/images/logo.ico +0 -0
- package/public/images/logo.png +0 -0
- package/public/images/logo@2x.png.gz +0 -0
- package/public/images/logo@3x.png.gz +0 -0
- package/public/images/logo@4x.png.gz +0 -0
- package/public/images/logo@5x.png +0 -0
- package/public/images/maximize.svg.gz +0 -0
- package/public/images/microscope.svg.gz +0 -0
- package/public/images/minidisc.svg.gz +0 -0
- package/public/images/movie-camera.svg.gz +0 -0
- package/public/images/navigate_next.svg.gz +0 -0
- package/public/images/new-yellow.svg.gz +0 -0
- package/public/images/new.svg.gz +0 -0
- package/public/images/open-book.svg.gz +0 -0
- package/public/images/open-folder.svg.gz +0 -0
- package/public/images/pause.svg.gz +0 -0
- package/public/images/photostructure-black.svg.gz +0 -0
- package/public/images/photostructure-white.svg.gz +0 -0
- package/public/images/refresh.svg.gz +0 -0
- package/public/images/rocket.svg.gz +0 -0
- package/public/images/sad-cat.svg.gz +0 -0
- package/public/images/safe.svg.gz +0 -0
- package/public/images/scales.svg.gz +0 -0
- package/public/images/seedling.svg.gz +0 -0
- package/public/images/shield.svg.gz +0 -0
- package/public/images/sleeping-face-desat.svg.gz +0 -0
- package/public/images/sleeping-face.svg.gz +0 -0
- package/public/images/sparkles.svg.gz +0 -0
- package/public/images/speed.svg.gz +0 -0
- package/public/images/splash.svg +1 -1
- package/public/images/splashbg1-1024w.jpg +0 -0
- package/public/images/splashbg2-1024w.jpg +0 -0
- package/public/images/splashbg3-1024w.jpg +0 -0
- package/public/images/splashbg4-1024w.jpg +0 -0
- package/public/images/splashbg5-1024w.jpg +0 -0
- package/public/images/splashbg6-1024w.jpg +0 -0
- package/public/images/star2.svg.gz +0 -0
- package/public/images/starry-night.svg.gz +0 -0
- package/public/images/stethoscope.svg.gz +0 -0
- package/public/images/stop.svg.gz +0 -0
- package/public/images/surf.svg.gz +0 -0
- package/public/images/sync.svg.gz +0 -0
- package/public/images/tada.svg.gz +0 -0
- package/public/images/terminal.svg.gz +0 -0
- package/public/images/thinking.svg.gz +0 -0
- package/public/images/thumbs-down.svg.gz +0 -0
- package/public/images/thumbs-up.svg.gz +0 -0
- package/public/images/toolbox.svg.gz +0 -0
- package/public/images/tools.svg.gz +0 -0
- package/public/images/umbrella.svg.gz +0 -0
- package/public/images/warning.svg.gz +0 -0
- package/public/images/wave.svg.gz +0 -0
- package/public/images/wrench.svg.gz +0 -0
- package/public/images/xray.svg.gz +0 -0
- package/public/images/zzz.svg.gz +0 -0
- package/public/mstile-144x144.png.gz +0 -0
- package/public/mstile-150x150.png.gz +0 -0
- package/public/mstile-310x150.png.gz +0 -0
- package/public/mstile-310x310.png.gz +0 -0
- package/public/mstile-70x70.png.gz +0 -0
- package/public/safari-pinned-tab.svg.gz +0 -0
- package/public/sw.js +5 -0
- package/server/bin/install-codec-tools.sh +48 -0
- package/server/sudoers.d/photostructure-codec-install +18 -0
- package/tools/README.md +23 -0
- package/tools/build.sh +30 -0
- package/tools/download-rg.sh +61 -0
- package/tools/license-overrides/photostructure-sqlite-vec-MIT.txt +21 -0
- package/tools/licenses/d3-color-difference/LICENSE.txt +29 -0
- package/tools/licenses/deep-eql/LICENSE.txt +21 -0
- package/tools/licenses/exiftool/{license.txt → LICENSE.txt} +140 -140
- package/tools/licenses/fft.js/LICENSE.txt +9 -0
- package/tools/licenses/libjpeg-turbo/LICENSE.md +7 -16
- package/tools/licenses/libraw/COPYRIGHT.txt +27 -0
- package/tools/licenses/moveable-type/LICENSE.txt +6 -0
- package/tools/licenses/noto-emoji/LICENSE.txt +201 -0
- package/tools/licenses/sharp-phash/LICENSE.txt +21 -0
- package/tools/licenses/{twemoji → type-detect}/LICENSE.txt +1 -1
- package/tools/linux-arm64/dcraw_emu +0 -0
- package/tools/linux-arm64/jpegtran +0 -0
- package/tools/linux-arm64/raw-identify +0 -0
- package/tools/linux-arm64/rg +0 -0
- package/tools/linux-arm64/sqlite3 +0 -0
- package/tools/linux-x64/dcraw_emu +0 -0
- package/tools/linux-x64/jpegtran +0 -0
- package/tools/linux-x64/raw-identify +0 -0
- package/tools/linux-x64/rg +0 -0
- package/tools/linux-x64/sqlite3 +0 -0
- package/tools/mac-arm64/dcraw_emu +0 -0
- package/tools/mac-arm64/jpegtran +0 -0
- package/tools/mac-arm64/jpegtran-README.md +31 -0
- package/tools/mac-arm64/libraw-README.md +42 -0
- package/tools/mac-arm64/raw-identify +0 -0
- package/tools/mac-arm64/rg +0 -0
- package/tools/mac-arm64/sqlite3 +0 -0
- package/tools/mac-arm64/sqlite3-README.md +35 -0
- package/tools/mac-x64/dcraw_emu +0 -0
- package/tools/mac-x64/jpegtran +0 -0
- package/tools/mac-x64/jpegtran-README.md +30 -0
- package/tools/mac-x64/libraw-README.md +52 -0
- package/tools/mac-x64/raw-identify +0 -0
- package/tools/mac-x64/rg +0 -0
- package/tools/mac-x64/sqlite3 +0 -0
- package/tools/mac-x64/sqlite3-README.md +6 -0
- package/tools/win-x64/dcraw_emu.exe +0 -0
- package/tools/{win-ia32/jpegtran → win-x64}/jpegtran.exe +0 -0
- package/tools/{win-ia32/jpegtran → win-x64}/libjpeg-62.dll +0 -0
- package/tools/win-x64/libraw-README.md +6 -0
- package/tools/win-x64/libraw.dll +0 -0
- package/tools/win-x64/raw-identify.exe +0 -0
- package/tools/win-x64/recycle-bin-README.md +3 -0
- package/tools/win-x64/recycle-bin.exe +0 -0
- package/tools/win-x64/rg.exe +0 -0
- package/tools/win-x64/sqlite3-README.md +4 -0
- package/tools/win-x64/sqlite3.exe +0 -0
- package/views/_fouc-prevention.ejs +13 -0
- package/views/error.ejs +64 -0
- package/views/eula.html +57 -0
- package/views/settings.ejs +958 -0
- package/views/spa.ejs +54 -0
- package/views/splash.ejs +30 -0
- package/views/welcome-tools.ejs +201 -0
- package/views/welcome.ejs +89 -0
- package/app/info.js +0 -3
- package/app/logtail.js +0 -3
- package/app/main.js +0 -3
- package/app/sync-file.js +0 -3
- package/app/sync.js +0 -3
- package/app/web.js +0 -3
- package/migrations/models/20181030_models.sql +0 -145
- package/migrations/models/20190417_rotation.sql +0 -1
- package/migrations/models/20190425_merged_assets.sql +0 -10
- package/migrations/models/20190426_lowercase_psnet_hostname.sql +0 -1
- package/migrations/models/20190522_on_new_exif_uid.sql +0 -1
- package/migrations/models/20190729_on_new_exif_uid.sql +0 -1
- package/migrations/models/20190730_session.sql +0 -6
- package/migrations/stats/20181030_stats.sql +0 -16
- package/migrations/stats/20190312_files_not_bytes.sql +0 -23
- package/migrations/stats/20190515_rebuild_queue.sql +0 -21
- package/public/app/latest.js.gz +0 -0
- package/public/fonts/roboto-mono-v5-latin-regular.woff.gz +0 -0
- package/public/fonts/roboto-mono-v5-latin-regular.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-300.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-300.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-500.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-500.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-700.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-700.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-900.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-900.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-italic.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-italic.woff2.gz +0 -0
- package/public/fonts/roboto-v18-latin-regular.woff.gz +0 -0
- package/public/fonts/roboto-v18-latin-regular.woff2.gz +0 -0
- package/public/images/128.png.gz +0 -0
- package/public/images/256-gradient.png +0 -0
- package/public/images/256-gradient.png.gz +0 -0
- package/public/images/256.png.gz +0 -0
- package/public/images/64.png.gz +0 -0
- package/public/images/bg.svg.gz +0 -0
- package/public/images/bg10.jpg.gz +0 -0
- package/public/images/blue-splash-1024w.png.gz +0 -0
- package/public/images/blue-tri-bg.svg.gz +0 -0
- package/public/images/boom.svg.gz +0 -0
- package/public/images/dark-cyan-fuschia-bg.svg.gz +0 -0
- package/public/images/fit.svg.gz +0 -0
- package/public/images/light-cyan-fuschia-bg.svg.gz +0 -0
- package/public/images/line-logo-top-cuts-filled.svg.gz +0 -0
- package/public/images/line-logo-top-cuts.svg.gz +0 -0
- package/public/images/link.svg.gz +0 -0
- package/public/images/logo-gradient-gloss-sq.svg.gz +0 -0
- package/public/images/logo-gradient.svg +0 -1
- package/public/images/logo-icon-path.svg.gz +0 -0
- package/public/images/logo-text-path.svg.gz +0 -0
- package/public/images/logo-text-white.svg.gz +0 -0
- package/public/images/navigate_prev.svg.gz +0 -0
- package/public/images/no-entry.svg.gz +0 -0
- package/public/images/phone.svg.gz +0 -0
- package/public/images/private.svg.gz +0 -0
- package/public/images/profile.svg.gz +0 -0
- package/public/images/public.svg.gz +0 -0
- package/public/images/show-in-folder-black.svg.gz +0 -0
- package/public/images/show-in-folder.svg.gz +0 -0
- package/public/images/shrug.svg.gz +0 -0
- package/public/images/splash-1024w.png +0 -0
- package/public/images/splash-1024w.png.gz +0 -0
- package/public/images/splash-512w.png +0 -0
- package/public/images/splash-512w.png.gz +0 -0
- package/public/images/splash-blue.svg +0 -1
- package/public/images/splashbg01-1024w.jpg +0 -0
- package/public/images/splashbg01-1024w.jpg.gz +0 -0
- package/public/images/splashbg02-1024w.jpg +0 -0
- package/public/images/splashbg02-1024w.jpg.gz +0 -0
- package/public/images/text-logo-blue.svg.gz +0 -0
- package/public/images/transparent-white.svg.gz +0 -0
- package/public/images/trash.svg.gz +0 -0
- package/public/release-notes.html +0 -581
- package/public/splash.html +0 -360
- package/tools/licenses/dcraw/dcraw.txt +0 -24
- package/tools/licenses/vue-my-dropdown/LICENSE.txt +0 -19
- package/tools/linux-arm/dcraw/dcraw +0 -0
- package/tools/linux-arm/dcraw/install.sh +0 -5
- package/tools/linux-arm/jpegtran/README.md +0 -11
- package/tools/linux-arm/jpegtran/jpegtran +0 -0
- package/tools/linux-arm/sqlite3/sqlite3 +0 -0
- package/tools/linux-ia32/sqlite3/sqlite3 +0 -0
- package/tools/linux-x64/dcraw/dcraw +0 -0
- package/tools/linux-x64/jpegtran/jpegtran +0 -0
- package/tools/mac-x64/dcraw/dcraw +0 -0
- package/tools/mac-x64/dcraw/install.sh +0 -8
- package/tools/mac-x64/jpegtran/jpegtran +0 -0
- package/tools/mac-x64/sqlite3/README.md +0 -33
- package/tools/mac-x64/sqlite3/sqlite3 +0 -0
- package/tools/win-ia32/dcraw/README.md +0 -30
- package/tools/win-ia32/dcraw/dcraw.exe +0 -0
- package/tools/win-ia32/sqlite3/sqlite3.exe +0 -0
package/LICENSE.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
### PLEASE READ CAREFULLY BEFORE USING THIS PRODUCT
|
|
2
3
|
|
|
3
4
|
This End-User License Agreement ("EULA") is a legal agreement between (a) You
|
|
@@ -5,25 +6,25 @@ This End-User License Agreement ("EULA") is a legal agreement between (a) You
|
|
|
5
6
|
authors and copyright holders) that governs your use of the Product (any
|
|
6
7
|
software or hardware installed or made available by PhotoStructure, Inc.).
|
|
7
8
|
|
|
8
|
-
**If you do not agree to the following terms of this license, please
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
**If you do not agree to the following terms of this license, please <a
|
|
10
|
+
href="/guide/uninstall/" target="_blank">uninstall</a>
|
|
11
|
+
the Product.**
|
|
11
12
|
|
|
12
13
|
### Copyright
|
|
13
14
|
|
|
14
15
|
The Product is protected by copyright and other intellectual property laws and
|
|
15
|
-
treaties.
|
|
16
|
+
treaties. PhotoStructure, Inc. retains the title, copyright, and all
|
|
16
17
|
intellectual property rights in the Product.
|
|
17
18
|
|
|
18
19
|
### License
|
|
19
20
|
|
|
20
21
|
You may not separately publish, sell, market, distribute, lend, lease, rent, or
|
|
21
|
-
sublicense the software code,
|
|
22
|
+
sublicense the Product, software code, or license keys. The Product is licensed,
|
|
22
23
|
not sold.
|
|
23
24
|
|
|
24
25
|
### Limitation of liability
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
In no event and under no legal theory, whether in tort (including negligence),
|
|
27
28
|
contract, or otherwise, unless required by applicable law (such as deliberate
|
|
28
29
|
and grossly negligent acts) or agreed to in writing, shall any authors or
|
|
29
30
|
copyright holders be liable to you for damages, including any direct, indirect,
|
|
@@ -31,48 +32,49 @@ special, incidental, or consequential damages of any character arising as a
|
|
|
31
32
|
result of this license or out of the use or inability to use the Product
|
|
32
33
|
(including but not limited to damages for loss of goodwill, work stoppage,
|
|
33
34
|
computer failure or malfunction, or any and all other commercial damages or
|
|
34
|
-
losses)
|
|
35
|
+
losses).
|
|
35
36
|
|
|
36
37
|
### Disclaimer of warranty
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
The Product is provided "as is," without warranty of any kind, express or
|
|
39
40
|
implied, including but not limited to the warranties of merchantability, fitness
|
|
40
41
|
for a particular purpose and noninfringement. In no event shall the authors or
|
|
41
42
|
copyright holders be liable for any claim, damages or other liability, whether
|
|
42
43
|
in an action of contract, tort or otherwise, arising from, out of or in
|
|
43
|
-
connection with the Product or the use or other dealings in the Product
|
|
44
|
+
connection with the Product or the use or other dealings in the Product.
|
|
44
45
|
|
|
45
|
-
### Limitation on
|
|
46
|
+
### Limitation on derivative works
|
|
46
47
|
|
|
47
48
|
Except to the extent that such restriction is not permitted under applicable
|
|
48
|
-
law, you are not permitted (and you agree not to)
|
|
49
|
-
|
|
49
|
+
law, you are not permitted (and you agree not to) create or redistribute
|
|
50
|
+
derivative works of the Product.
|
|
50
51
|
|
|
51
52
|
### Privacy and consent to use data
|
|
52
53
|
|
|
53
|
-
**The Product
|
|
54
|
-
without your explicit consent.**
|
|
55
|
-
|
|
56
|
-
PhotoStructure Customer Support may request access to problematic images or
|
|
57
|
-
videos, but will only access those assets that you explicitly consent to
|
|
58
|
-
sharing.
|
|
54
|
+
**The Product does not send your photos or videos to PhotoStructure, Inc.**
|
|
59
55
|
|
|
60
|
-
The Product
|
|
61
|
-
|
|
56
|
+
The Product may periodically download and install updates. These updates may
|
|
57
|
+
include bug fixes, security updates, and new features. Automatic updates may be
|
|
58
|
+
disabled by the user via <a
|
|
59
|
+
href="/getting-started/advanced-settings/"
|
|
60
|
+
target="_blank">settings</a>.
|
|
62
61
|
|
|
63
|
-
The Product may send
|
|
64
|
-
(such as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Termination of use
|
|
62
|
+
The Product may send error reports that contain limited file metadata via a
|
|
63
|
+
third party (such as Sentry). Error reports may be <a
|
|
64
|
+
href="/guide/error-reports/#how-to-opt-out-of-sending-error-reports"
|
|
65
|
+
target="_blank">disabled by the user</a>.
|
|
68
66
|
|
|
69
|
-
|
|
70
|
-
with any of its terms, in which case you must destroy all copies of the Product
|
|
71
|
-
and return any component parts.
|
|
67
|
+
[//]: # "The URL above must be fully-qualified, as the EULA is included in the welcome page."
|
|
72
68
|
|
|
73
69
|
### Amendments to this Agreement
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
PhotoStructure, Inc. reserves the right, at its sole discretion, to modify or
|
|
76
72
|
replace this Agreement at any time. If a revision is material we will provide at
|
|
77
73
|
least 30 days' notice prior to any new terms taking effect. What constitutes a
|
|
78
74
|
material change will be determined at our sole discretion.
|
|
75
|
+
|
|
76
|
+
### Termination of use
|
|
77
|
+
|
|
78
|
+
Your rights under this EULA will terminate automatically if you fail to comply
|
|
79
|
+
with any of its terms, in which case you must destroy all copies of the Product
|
|
80
|
+
and return any component parts.
|
package/README.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
<img alt="PhotoStructure" src="https://photostructure.com/img/logo-horizontal-black-on-white-800w.png" width=400>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Welcome to your new home for all your photos and videos!
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
PhotoStructure on headless x64 and ARMHF linux platforms.
|
|
5
|
+
## Prerequisites
|
|
7
6
|
|
|
8
|
-
PhotoStructure
|
|
9
|
-
[End User License Agreement](./LICENSE.md).**
|
|
7
|
+
PhotoStructure for Servers requires:
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
- a 64-bit Intel or AMD CPU
|
|
10
|
+
- At least Ubuntu LTS 22.04, macOS Sequoia (15), or Windows 10
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. Read and accept the [end-user license agreement](https://photostructure.com/eula), then
|
|
15
|
+
|
|
16
|
+
2. Follow the instructions for [Docker](https://photostructure.com/server/photostructure-for-docker/) or [Node.js](https://photostructure.com/server/photostructure-for-node/).
|
|
17
|
+
|
|
18
|
+
3. Check out the [user guide](https://photostructure.com/user-guide/) for tips on how to use PhotoStructure and get the most out of it.
|
|
19
|
+
|
|
20
|
+
4. Check out the [release notes](https://photostructure.com/release-notes/) to see what's new in each version.
|
|
21
|
+
|
|
22
|
+
## Join us!
|
|
23
|
+
|
|
24
|
+
Visit the [PhotoStructure forum](https://forum.photostructure.com) and [Discord](https://photostructure.com/go/discord) for product support, release announcements, and discuss new features.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Only the latest released version of PhotoStructure is supported.
|
|
6
|
+
|
|
7
|
+
## Responsible disclosure security policy
|
|
8
|
+
|
|
9
|
+
We consider the security of our users a top priority. But no matter how much effort we put into security, there may still be vulnerabilities present.
|
|
10
|
+
|
|
11
|
+
## Reporting a security issue
|
|
12
|
+
|
|
13
|
+
If you find a vulnerability in PhotoStructure, _or even think you have_, please contact us via a **private channel**.
|
|
14
|
+
|
|
15
|
+
Please use whatever channel is most convenient for you:
|
|
16
|
+
|
|
17
|
+
- send an email to [security@photostructure.com](mailto:security@photostructure.com), or
|
|
18
|
+
- send a direct forum message to [@mrm](https://forum.photostructure.com/u/mrm/summary), or
|
|
19
|
+
- send a direct message to @photostructure on [discord](https://photostructure/go/discord)
|
|
20
|
+
|
|
21
|
+
Expect a reply in under 36 hours. Please try an alternative contact method if you don't get a response.
|
|
22
|
+
|
|
23
|
+
**Please do not open a public GitHub issue to report vulnerabilities.**
|
|
24
|
+
|
|
25
|
+
We kindly ask you to refrain from malicious acts that put our users, the project, or any of the project’s team members at risk.
|
|
26
|
+
|
|
27
|
+
## Thank you!
|
|
28
|
+
|
|
29
|
+
Your efforts to responsibly disclose your findings are sincerely appreciated and will be taken into account to acknowledge your contributions.
|
package/VERSION.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2026.4.7-beta",
|
|
3
|
+
"versionMajor": 2026,
|
|
4
|
+
"versionMinor": 4,
|
|
5
|
+
"versionPatch": 7,
|
|
6
|
+
"versionPrerelease": [
|
|
7
|
+
"beta"
|
|
8
|
+
],
|
|
9
|
+
"release": "2026.4.7-beta+20260427190951",
|
|
10
|
+
"gitSha": "ba011df2caf92da189a009f6c41c4185bb4e4c90",
|
|
11
|
+
"gitDate": "2026-04-28T02:09:51.000Z"
|
|
12
|
+
}
|
package/bin/bootstrap.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Copyright © 2026, PhotoStructure Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
// BY USING THIS SOFTWARE, YOU ACCEPT ALL OF THE TERMS IN
|
|
6
|
+
// https://photostructure.com/eula
|
|
7
|
+
// IF YOU DO NOT ACCEPT THESE TERMS, DO NOT USE THIS SOFTWARE
|
|
8
|
+
|
|
9
|
+
(()=>{"use strict";var e={92778(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&n(t,e,r[s]);return i(t,e),t}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.configDir=t.HOME=t.ROOT=t.isBrew=t.isMac=t.isWin=t.isNetworkDisabled=t.dbg=void 0,t.defer=h,t.toS=v,t.die=function(e,t){for(const r of[v(e),`Please refer to ${t??"https://photostructure.com/server/photostructure-for-node/"}`,"You can also visit https://forum.photostructure.com for help.",""])console.error(r);p.default.exit(1)},t.toNotBlank=m,t.isTrue=g,t.setDnsLookup=function(e){b=e,t.isNetworkDisabled.reset()},t.run=function(e,r,o){const n=performance.now();t.isWin&&e.includes(" ")&&(e='"'+e+'"');const i=(0,l.spawnSync)(e,r,{cwd:t.ROOT,timeout:1e4,...o,encoding:"utf8",shell:t.isWin});if(0!==i.status||null!=i.error)throw new Error(`"${e} ${r.join(" ")}" failed: ${v(i.error)} ${i.stderr}`);return(0,t.dbg)("run("+e+")",{args:r,result:i,elapsedMs:(s=performance.now()-n,Math.round(10*s)/10)}),i;var s},t.readPackageVersion=function(){return JSON.parse((0,c.readFileSync)((0,f.join)(t.ROOT,"package.json"),"utf8")).version},t.priorVersionFile=function(){return(0,f.join)((0,t.configDir)(),"prior-version.json")};const l=r(31421),a=r(71553),c=r(73024),d=r(48161),f=s(r(76760)),p=u(r(1708));function h(e){let t,r,o=!1;const n=function(){if(o){if(null!=r)throw r;return t}try{return o=!0,t=e()}catch(e){throw r=e,r}};return n.reset=()=>{t=void 0,r=void 0,o=!1},n}function v(e){return null==e?"":String(e)}function _(e){return null==e||0===v(e).trim().length}function m(e){return _(e)?void 0:v(e)}function g(e){if("boolean"==typeof e)return e;if(null==e)return!1;if(1===e)return!0;{const t=String(e).toLowerCase().trim();return["true","1"].includes(t)}}t.dbg=/\bdebug\b/.test(p.default.env.PS_LOG_LEVEL??"")||p.default.argv.includes("--debug")?console.log:()=>{};let b=a.lookup;t.isNetworkDisabled=h(async()=>{if(!_(p.default.env.PS_NO_NETWORK))return g(p.default.env.PS_NO_NETWORK);try{return await Promise.race([b("account.photostructure.com",{family:4}),new Promise((e,t)=>setTimeout(()=>t(new Error("Network timeout")),7e3))]),!1}catch(e){return(0,t.dbg)("Network disabled: "+e),!0}}),t.isWin="win32"===p.default.platform,t.isMac="darwin"===p.default.platform,t.isBrew=t.isMac&&!g(p.default.env.NOBREW)&&(0,c.existsSync)("/usr/local/bin/brew"),t.ROOT=f.default.resolve(f.default.join(__dirname,"..")),t.HOME=p.default.env.HOME??(0,d.homedir)(),t.configDir=h(()=>{const e=t.isWin?m(p.default.env.PS_CONFIG_DIR)??(0,f.join)(p.default.env.APPDATA,"PhotoStructure"):m(p.default.env.PS_CONFIG_DIR)??(0,f.join)(t.HOME,".config","PhotoStructure");return(0,c.mkdirSync)(e,{recursive:!0,mode:448}),e})},11610(e,t,r){e=r.nmd(e);var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isNpmInstall=void 0,t.bootstrapMain=d;const n=r(73024),i=r(76760),s=o(r(1708)),u=r(92778),l=r(93249),a=r(69071),c=r(69772);async function d(){if((0,a.assertNodeVersion)(),!t.isNpmInstall)if(await(0,u.isNetworkDisabled)()){(0,n.existsSync)((0,u.priorVersionFile)())||(0,u.die)("Network access is disabled.\nPlease enable your WAN during your first run to download PhotoStructure's dependencies.","https://photostructure.com/server/photostructure-for-node/#troubleshooting-network");const e=(0,c.readJsonMaybe)((0,u.priorVersionFile)());(e?.node!==s.default.versions.node||(0,c.needsNpmInstall)())&&(0,c.npmInstall)()}else(0,l.gitPullAndMaybeBounce)().bounced||(0,c.prepAndInstall)()}t.isNpmInstall=!(0,n.existsSync)((0,i.join)(u.ROOT,".git")),r.c[r.s]===e&&(s.default.on("unhandledRejection",e=>{(0,u.die)("Unexpected rejection: "+e,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-unexpected")}),s.default.on("uncaughtException",e=>{(0,u.die)("Unexpected error: "+e,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-unexpected")}),d())},93249(e,t,r){var o,n=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(o=function(e){return o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},o(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&n(t,e,r[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.gitPullAndMaybeBounce=t.EnvOnBounce=void 0;const u=s(r(1708)),l=r(92778),a=r(14325);t.EnvOnBounce={PS_BOUNCED:"1",PS_REINSTALL:"1"},t.gitPullAndMaybeBounce=(0,l.defer)(()=>{const e=(0,l.readPackageVersion)();(0,l.dbg)({version_before_pull:e});const r=(0,l.isTrue)(u.default.env.NOGIT),o=(0,l.isTrue)(u.default.env.PS_NO_GIT);if(!r&&!o&&"none"!==u.default.env.PS_CHECK_UPDATES){try{(0,l.run)((0,a.git)(),["stash","--include-untracked"])}catch(e){console.warn("warn: git stash failed: "+e)}try{(0,l.run)((0,a.git)(),["pull"],{timeout:3e4})}catch(e){console.warn("warn: git failed: "+e)}}const n=(0,l.readPackageVersion)();return(0,l.dbg)({version_after_pull:n}),(0,l.isTrue)(u.default.env.PS_BOUNCED)||!(0,l.isTrue)(u.default.env.PS_DEV_FORCE_BOUNCE)&&e===n?{bounced:!1,version_before_pull:e,version_after_pull:n}:((0,l.run)(u.execPath,u.execArgv,{env:{...u.default.env,...t.EnvOnBounce},stdio:"inherit",timeout:void 0}),{bounced:!0,version_before_pull:e,version_after_pull:n})})},69071(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OldNodeError=void 0,t.assertNodeVersion=function(){const[e,r]=n.default.versions.node.split(".").map(e=>parseInt(e));(0,i.dbg)({node_version:n.default.versions.node,major:e,minor:r}),e<22||22===e&&r<3?(0,i.die)(t.OldNodeError,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-node-version"):(0,i.dbg)("Node.js version: "+n.default.versions.node)};const n=o(r(1708)),i=r(92778);t.OldNodeError="PhotoStructure v2026.2+ requires Node.js v22.3 or later (v25 recommended)"},69772(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.npmCacheClean=c,t.readJsonMaybe=d,t.needsNpmInstall=f,t.prepAndInstall=function(){const e=(0,s.gitPullAndMaybeBounce)(),t={node:process.versions.node,photostructure:e.version_after_pull},r=process.argv.includes("--reinstall")||(0,i.isTrue)(process.env.PS_REINSTALL),n=d((0,i.priorVersionFile)()),l=n?.photostructure!==t.photostructure||n?.node!==t.node,a=e.version_before_pull!==e.version_after_pull,h=f();(0,i.dbg)("cleanup?",{reinstall:r,mismatchedInstalledVersion:l,mismatchedRunningVersions:a,missingNodeModules:h,priorInstalledJson:n,expectedVersionJson:t,configDir:(0,i.configDir)()}),(r||l||a||h)&&(console.log("Cleaning up any prior builds..."),c(),(0,o.writeFileSync)((0,i.priorVersionFile)(),JSON.stringify(t)),(0,u.assertPythonSetuptools)(),p())},t.npmInstall=p;const o=r(73024),n=r(76760),i=r(92778),s=r(93249),u=r(58789),l=r(14325);function a(...e){if(0===e.length)throw new Error("rm(): no args");const t=(0,n.join)(...e);try{(0,i.dbg)("rm("+t+")"),(0,o.rmSync)(t,{recursive:!0,force:!0,maxRetries:5,retryDelay:500})}catch(e){console.warn("warn: failed to rm "+t+": "+e)}}function c(){a(i.ROOT,"node_modules"),i.isWin?(a(process.env.APPDATA,"npm-cache","_libvips"),a(process.env.LOCALAPPDATA,"node-gyp")):(a(i.HOME,".npm","_libvips"),a(i.HOME,".node-gyp"))}function d(e){try{return JSON.parse((0,o.readFileSync)(e,{encoding:"utf8"}))}catch{return}}function f(){return!(0,o.existsSync)((0,n.join)(i.ROOT,"node_modules"))}function p(e){(0,i.run)((0,l.npm)(),["install"],{timeout:e})}},58789(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.assertPythonSetuptools=function(){try{(0,i.dbg)("Checking python..."),(0,i.run)((0,s.python)(),["-c",'"import distutils"'])}catch(e){if(!(0,i.toS)(e).includes("No module named 'distutils'"))throw e;(0,i.dbg)("Installing setuptools...");try{i.isBrew?(0,i.run)("brew",["install","-q","python","python-setuptools"]):i.isWin?(0,i.run)((0,s.pathToTool_)((0,i.toNotBlank)(n.default.env.PIP)??"pip.exe"),["install","setuptools"]):(0,i.run)((0,s.python)(),["-m","pip","install","setuptools"])}catch(e){(0,i.die)(`Failed to install Python setuptools: ${(0,i.toS)(e)}`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-python")}}};const n=o(r(1708)),i=r(92778),s=r(14325)},14325(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.python=t.npm=t.git=void 0,t.pathToTool_=function(e){const t=l(e);return null==t&&(0,u.die)(`Please install ${e}`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-prerequisites"),t};const n=r(73024),i=o(r(76760)),s=o(r(1708)),u=r(92778);function l(e){if(null!=e&&0!==(0,u.toS)(e).trim().length){if(i.default.isAbsolute(e)&&t(e))return e;for(const r of(0,u.toS)(s.default.env.PATH).split(i.default.delimiter)){const o=i.default.join(r,e);if(t(o))return(0,u.dbg)("pathToTool("+e+"): "+o),o}(0,u.dbg)("pathToTool("+e+"): not found")}function t(e){try{return(0,n.accessSync)(e,n.constants.R_OK|(u.isWin?0:n.constants.X_OK)),!0}catch{return!1}}}function a({envName:e,posixName:t,winName:r,desc:o}){return(0,u.defer)(()=>{const n=(0,u.toNotBlank)(s.default.env[e])??(u.isWin?r:t),i=l(n);if(null!=i)return i;(0,u.die)(`Please reinstall ${o} (missing ${n})`,"https://photostructure.com/server/photostructure-for-node/#troubleshooting-prerequisites")})}t.git=a({desc:"Git",envName:"GIT",posixName:"git",winName:"git.exe"}),t.npm=a({desc:"Node.js",envName:"NPM",posixName:"npm",winName:"npm.cmd"}),t.python=a({desc:"Python",envName:"PYTHON",posixName:"python3",winName:"py.exe"})},31421(e){e.exports=require("node:child_process")},71553(e){e.exports=require("node:dns/promises")},73024(e){e.exports=require("node:fs")},48161(e){e.exports=require("node:os")},76760(e){e.exports=require("node:path")},1708(e){e.exports=require("node:process")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.c=t,r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o=r(r.s=11610);module.exports=o})();
|