mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 08:45:04 +00:00
Fix packaging tools
Due to hardcoding files, the new ones were not packaged.
This commit is contained in:
parent
98ee813820
commit
3c4f2c6841
14
build.sbt
14
build.sbt
@ -672,14 +672,20 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = {
|
||||
webext
|
||||
)
|
||||
|
||||
val excludes = Seq(wx, target)
|
||||
|
||||
val files =
|
||||
(dir ** "*")
|
||||
.filter(f => !excludes.exists(p => f.absolutePath.startsWith(p.absolutePath)))
|
||||
.pair(sbt.io.Path.relativeTo(dir))
|
||||
.map({case (f, name) => (f, s"docspell-tools-${version}/$name") })
|
||||
|
||||
IO.zip(
|
||||
Seq(
|
||||
webext -> s"docspell-tools-${version}/firefox/docspell-extension.xpi",
|
||||
wx / "native/app_manifest.json" -> s"docspell-tools-${version}/firefox/native/app_manifest.json",
|
||||
wx / "native/native.py" -> s"docspell-tools-${version}/firefox/native/native.py",
|
||||
dir / "ds.sh" -> s"docspell-tools-${version}/ds.sh",
|
||||
dir / "consumedir.sh" -> s"docspell-tools-${version}/consumedir.sh"
|
||||
),
|
||||
wx / "native/native.py" -> s"docspell-tools-${version}/firefox/native/native.py"
|
||||
) ++ files,
|
||||
archive
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user