File tree Expand file tree Collapse file tree 3 files changed +30
-14
lines changed Expand file tree Collapse file tree 3 files changed +30
-14
lines changed Original file line number Diff line number Diff line change @@ -67,12 +67,6 @@ bash "${ROOT_PATH}/appimage-scripts/install_electron.sh"
6767# Setup node deps
6868bash " ${ROOT_PATH} /appimage-scripts/setup_node_deps.sh"
6969
70- # Build our css files
71- bash " ${ROOT_PATH} /appimage-scripts/build_css.sh"
72-
73- # Build/setup nim-based files
74- bash " ${ROOT_PATH} /appimage-scripts/build_with_nim2.sh"
75-
7670cat << 'EOF ' >"${APP_DIR}/bin/ct"
7771#!/usr/bin/env bash
7872
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 396396 '' ;
397397 } ;
398398
399+ appimageCss = pkgs . runCommand "codetracer-appimage-css" {
400+ nativeBuildInputs = [
401+ pkgs . coreutils
402+ pkgs . nodejs_20
403+ node-modules-derivation
404+ ] ;
405+ } ''
406+ set -eu
407+
408+ export HOME="$TMPDIR/home"
409+ mkdir -p "$HOME"
410+
411+ mkdir -p "$out/frontend/styles"
412+
413+ cd ${ src } /src/frontend/styles
414+
415+ stylus="${ node-modules-derivation . out } /bin/node_modules/.bin/stylus"
416+
417+ for style in \
418+ default_white_theme.styl \
419+ default_dark_theme_electron.styl \
420+ loader.styl \
421+ subwindow.styl
422+ do
423+ ${ pkgs . nodejs_20 } /bin/node "$stylus" -o "$out/frontend/styles" "$style"
424+ done
425+ '' ;
426+
399427 appimagePayload = pkgs . runCommand "codetracer-appimage-payload" {
400428 nativeBuildInputs = [
401429 pkgs . bashInteractive
412440 mkdir -p "$out/bin"
413441 mkdir -p "$out/src"
414442
443+ cp -Lr ${ appimageCss } /frontend "$out/"
444+
415445 INTERPRETER_PATH="${
416446 if pkgs . stdenv . hostPlatform . system == "aarch64-linux"
417447 then "/lib/ld-linux-aarch64.so.1"
You can’t perform that action at this time.
0 commit comments