Skip to content

build(scripts): only override styles on release if missing or outdated#1799

Merged
ShGKme merged 3 commits into
mainfrom
build/only-reextract-custom-styles-if-missing
Jul 9, 2026
Merged

build(scripts): only override styles on release if missing or outdated#1799
ShGKme merged 3 commits into
mainfrom
build/only-reextract-custom-styles-if-missing

Conversation

@ShGKme

@ShGKme ShGKme commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

☑️ Resolves

  • build(server-styles): check if overrides are up-to-date
    • When overrides are required, they must be on the same styles version and on the current build config's theming
  • refactor(scripts): split override-nextcloud-styles into CLI and function
    • To call a function from CLI instead of one CLI from another CLI
  • build(override-nextcloud-styles): only override if missing or outdated
    • If overridden styles are up-to-date, no need to extract them again, including on release

ShGKme added 3 commits July 8, 2026 22:07
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme requested a review from Antreesy July 8, 2026 20:13
@ShGKme ShGKme self-assigned this Jul 8, 2026
@ShGKme ShGKme added the distribution 📦 Building, packaging, publishing label Jul 8, 2026

@Antreesy Antreesy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise makes sense to me

Arguments:
--version <nextcloud-version-major> - major version of Nextcloud to override styles for (e.g. "34"), default: the current built-in Talk's Nextcloud version
--help - show help
--port <number> - port to expose the Nextcloud server on, default: 6123

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

port is not needed anymore?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. In the past, the docker container with Nextcloud server had port exposed to fetch the styles on the host. To run 2 containers with different Nextcloud servers, we needed to set different ports.

Later, to avoid this issue entirely, we stopped exposing the port and switched to fetching styles via docker exec curl.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The extract-nextcloud-styles script doesn't have port anymore, so --port in override-nextcloud-styles does nothing.

@ShGKme ShGKme merged commit 5aed891 into main Jul 9, 2026
12 checks passed
@ShGKme ShGKme deleted the build/only-reextract-custom-styles-if-missing branch July 9, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distribution 📦 Building, packaging, publishing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants