Skip to content

Commit 888ba0e

Browse files
committed
copy license to package
1 parent 7b498f8 commit 888ba0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ tasks.register("repackageDeb") {
108108
.replace("{installed-size}", installSize.toString())
109109
.replace("{homepage}", "https://github.com/zerofancy/floatclock")
110110
File(debianPath, "control").writeText(newControl)
111-
File(debianPath, "preinst").writeText(File("repackageDeb/DEBIAN/preinst").readText())
111+
File(debianPath, "preinst").writeText(File(projectDir, "repackageDeb/DEBIAN/preinst").readText())
112+
File(debianPath, "copyright").writeText(File(projectDir, "LICENSE").readText())
112113

113114
// 重新打包 (ubuntu下默认使用zstd压缩,但这不能被debian/deepin现有版本支持)
114115
execProcessWait("dpkg-deb", "-b","-Zxz", extractPath.absolutePath, buildPath.absolutePath + "/")

0 commit comments

Comments
 (0)