lemmy-ui: write version to correct file

This commit is contained in:
Matej Cotman 2023-06-27 06:36:54 +03:00 committed by adisbladis
parent 4b789ef027
commit 2ba6d6fb94

View file

@ -64,6 +64,7 @@ mkYarnPackage {
export HOME=$PWD/yarn_home export HOME=$PWD/yarn_home
ln -sf $PWD/node_modules $PWD/deps/lemmy-ui/ ln -sf $PWD/node_modules $PWD/deps/lemmy-ui/
echo 'export const VERSION = "${version}";' > $PWD/deps/lemmy-ui/src/shared/version.ts
yarn --offline build:prod yarn --offline build:prod
''; '';
@ -74,10 +75,6 @@ mkYarnPackage {
cp -R ./node_modules $out cp -R ./node_modules $out
''; '';
postInstall = ''
echo 'export const VERSION = "${version}";' > $out/libexec/lemmy-ui/deps/lemmy-ui/src/shared/version.ts
'';
distPhase = "true"; distPhase = "true";
passthru.updateScript = ./update.sh; passthru.updateScript = ./update.sh;