Skip to content

Commit

Permalink
Merge pull request #47709 from nextcloud/fix/server-webpack-appverson
Browse files Browse the repository at this point in the history
fix: only keep major as server version
  • Loading branch information
susnux authored Sep 3, 2024
2 parents 0aebd37 + 9763efa commit b98b5bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const WebpackSPDXPlugin = require('./build/WebpackSPDXPlugin.js')

const modules = require('./webpack.modules.js')

const appVersion = readFileSync('./version.php').toString().match(/OC_VersionString[^']+'([^']+)/)?.[1] ?? 'unknown'
const appVersion = readFileSync('./version.php').toString().match(/OC_Version.+\[([0-9]{2})/)?.[1] ?? 'unknown'
const isDev = process.env.NODE_ENV === 'development'

const formatOutputFromModules = (modules) => {
Expand Down

0 comments on commit b98b5bb

Please sign in to comment.