mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 16:45:05 +00:00
commit
7216629059
14
build.sbt
14
build.sbt
@ -672,14 +672,20 @@ def packageTools(logger: Logger, dir: File, version: String): Seq[File] = {
|
|||||||
webext
|
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(
|
IO.zip(
|
||||||
Seq(
|
Seq(
|
||||||
webext -> s"docspell-tools-${version}/firefox/docspell-extension.xpi",
|
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/app_manifest.json" -> s"docspell-tools-${version}/firefox/native/app_manifest.json",
|
||||||
wx / "native/native.py" -> s"docspell-tools-${version}/firefox/native/native.py",
|
wx / "native/native.py" -> s"docspell-tools-${version}/firefox/native/native.py"
|
||||||
dir / "ds.sh" -> s"docspell-tools-${version}/ds.sh",
|
) ++ files,
|
||||||
dir / "consumedir.sh" -> s"docspell-tools-${version}/consumedir.sh"
|
|
||||||
),
|
|
||||||
archive
|
archive
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user