lemmy-ui: write version to correct file
This commit is contained in:
parent
4b789ef027
commit
2ba6d6fb94
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue