mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +00:00
commit
867f8268c4
11
build.sbt
11
build.sbt
@ -556,7 +556,14 @@ val restserver = project
|
|||||||
"-Xmx150M",
|
"-Xmx150M",
|
||||||
"-XX:+UseG1GC"
|
"-XX:+UseG1GC"
|
||||||
),
|
),
|
||||||
Revolver.enableDebugging(port = 5050, suspend = false)
|
Revolver.enableDebugging(port = 5050, suspend = false),
|
||||||
|
Universal / mappings := {
|
||||||
|
val allMappings = (Universal / mappings).value
|
||||||
|
allMappings.filter {
|
||||||
|
//scalajs artifacts are not needed at runtime
|
||||||
|
case (file, name) => !name.contains("_sjs1_")
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
.dependsOn(restapi, joexapi, backend, webapp, ftssolr)
|
.dependsOn(restapi, joexapi, backend, webapp, ftssolr)
|
||||||
|
|
||||||
@ -771,7 +778,7 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = {
|
|||||||
|
|
||||||
addCommandAlias(
|
addCommandAlias(
|
||||||
"make",
|
"make",
|
||||||
";set webapp/elmCompileMode := ElmCompileMode.Production; set webapp/stylesMode := StylesMode.Prod ;root/openapiCodegen ;root/test:compile"
|
";set webapp/elmCompileMode := ElmCompileMode.Production; set webapp/stylesMode := StylesMode.Prod ;root/openapiCodegen ;root/Test/compile"
|
||||||
)
|
)
|
||||||
addCommandAlias("make-zip", ";restserver/universal:packageBin ;joex/universal:packageBin")
|
addCommandAlias("make-zip", ";restserver/universal:packageBin ;joex/universal:packageBin")
|
||||||
addCommandAlias("make-deb", ";restserver/debian:packageBin ;joex/debian:packageBin")
|
addCommandAlias("make-deb", ";restserver/debian:packageBin ;joex/debian:packageBin")
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
let
|
let
|
||||||
nixpkgsUnstable = builtins.fetchTarball {
|
nixpkgs = builtins.fetchTarball {
|
||||||
url = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz";
|
url = "https://github.com/NixOS/nixpkgs/archive/nixos-20.09.tar.gz";
|
||||||
};
|
};
|
||||||
pkgsUnstable = import nixpkgsUnstable { };
|
pkgs = import nixpkgs { };
|
||||||
initScript = pkgsUnstable.writeScript "docspell-build-init" ''
|
initScript = pkgs.writeScript "docspell-build-init" ''
|
||||||
export LD_LIBRARY_PATH=
|
export LD_LIBRARY_PATH=
|
||||||
${pkgsUnstable.bash}/bin/bash -c sbt
|
${pkgs.bash}/bin/bash -c "sbt -mem 2048 -java-home ${pkgs.openjdk11}/lib/openjdk"
|
||||||
'';
|
'';
|
||||||
in with pkgsUnstable;
|
in with pkgs;
|
||||||
|
|
||||||
buildFHSUserEnv {
|
buildFHSUserEnv {
|
||||||
name = "docspell-sbt";
|
name = "docspell-sbt";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user