Skip to content

Build system, platform, and deployment fixes#912

Open
sreckoskocilic wants to merge 7 commits into
fman-users:mainfrom
sreckoskocilic:build_and_platform_codescan
Open

Build system, platform, and deployment fixes#912
sreckoskocilic wants to merge 7 commits into
fman-users:mainfrom
sreckoskocilic:build_and_platform_codescan

Conversation

@sreckoskocilic
Copy link
Copy Markdown

Summary

Build system

  • venv.venv across .gitignore, desk.sh, desk.cmd, and all 3 Dockerfiles (arch, fedora, ubuntu)
  • desk.cmd — auto-detect Windows SDK version instead of hardcoded path; relative ROOT path; added sign and publish aliases
  • build.py — bare except:except Exception:; assertraise ValueError in post_release; Debian added to publish targets
  • build_impl/__init__.pyis_package detection uses hasattr(library, '__path__') instead of filename regex; dest_dirdest_path typo fix in upload_file; .decode() fallback to utf-8 when sys.stdout.encoding is None; mastermain branch for GitHub push; .git excluded from cleanup during core upload
  • build_impl/aws.py — CloudFront invalidation CallerReference uses id(items) suffix to avoid collisions

macOS

  • altoolnotarytool — deprecated xcrun altool replaced with xcrun notarytool submit --wait; removes plistlib, requests, json, sleep dependencies; adds --team-id setting
  • mac.json — added apple_developer_team_id field

Linux

  • Ubuntu — removed obsolete libpng12 exception in GTK dependency removal; find_library('gtk-3') replaces hardcoded .so path
  • Fedora — added hidden_imports for pgi.overrides in settings; gem install --no-document replaces deprecated --no-ri --no-rdoc
  • Arch — added comment explaining why pgi is excluded from requirements

Windows

  • Duplicate PyQt5==5.15.11 removed from requirements/windows.txt (already in base.txt)

Docs

  • install.txt — updated Xcode download URL, NSIS version note, timestamp server, removed hardcoded paths
  • CHANGELOG.md — added QtQmlModels to list of excluded Qt frameworks

Test plan

  • Verify desk.cmd auto-detects Windows SDK on a Windows machine
  • Verify Docker builds succeed for arch, fedora, ubuntu
  • Verify macOS notarization with notarytool
  • Verify python build.py freeze works on each platform

…paring two tuples, every equality check returns True

- master -> main branch fix
- prepare_trash now calls self.move_to_trash instead of self.delete, so plugin subclasses won't permanently delete files when the user expects trashing
- NotImplementedError - unrecognized platforms fail fast with a clear message instead of a cryptic NameError
- removed shadowing basename import
- get_column_widths uses range so plugin-added columns get their widths saved/restored
…it__ always runs, even on exception.

  - util/qt/__init__.py — Added missing c_void_p import from ctypes, fixing a macOS runtime crash.
  - table.py — Fixed off-by-one: bounds check now rejects len + 1 correctly.
  - widgets.py — Added null guard on _main_window before accessing it in state change handler.
…ved, so a/b/c/../../d correctly becomes a/d.

  - session.py — Removed dead _get_startup_message method (duplicated by _show_startup_messages)
- desk.cmd — auto-detect Windows SDK, relative paths, add sign/publish aliases
- build.py — remove unused import, Debian support in publish, bare except→except Exception,
assert→ValueError
- build_impl/init.py — hasattr(__path__) for package detection, dest_path bugfix, utf-8
fallback encoding, assert→RuntimeError, chmod check=True, skip .git in cleanup, master→main,
HTTPS validation + timeout
- aws.py — unique CallerReference
- mac.py — altool→notarytool (modern Apple notarization API), removed unused imports
- ubuntu.py — dynamic GTK path via ctypes, removed stale libpng12 exception
- Settings — fedora hidden_imports, mac team_id, windows timestamp server update
- fedora.repo — gpgcheck=1 + gpgkey
- post-commit — FMAN_API_SECRET env var (removes hardcoded secret), --fail --silent on curl
- install.txt — updated URLs, NSIS version, placeholder for cert path
- requirements — http→https, remove duplicate PyQt5 in windows.txt, arch.txt comment
- CHANGELOG.md — QtQmlModels added to strip list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant