Skip to content

Commit

Permalink
lemmy-ui: write version to correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
matejc committed Jun 27, 2023
1 parent 21986a1 commit 5819aa9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkgs/servers/web-apps/lemmy/ui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ mkYarnPackage {
export HOME=$PWD/yarn_home
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
'';
Expand All @@ -74,10 +75,6 @@ mkYarnPackage {
cp -R ./node_modules $out
'';

postInstall = ''
echo 'export const VERSION = "${version}";' > $out/libexec/lemmy-ui/deps/lemmy-ui/src/shared/version.ts
'';

distPhase = "true";

passthru.updateScript = ./update.sh;
Expand Down

0 comments on commit 5819aa9

Please sign in to comment.