aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/hakurei_current.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/hakurei_current.go')
-rw-r--r--internal/rosa/hakurei_current.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/rosa/hakurei_current.go b/internal/rosa/hakurei_current.go
new file mode 100644
index 00000000..a6eec7f1
--- /dev/null
+++ b/internal/rosa/hakurei_current.go
@@ -0,0 +1,26 @@
+//go:build current
+
+package rosa
+
+import (
+ _ "embed"
+
+ "hakurei.app/internal/pkg"
+)
+
+const hakureiVersion = "1.0-current"
+
+// hakureiSourceTarball is a compressed tarball of the hakurei source code.
+//
+//go:generate tar -zc -C ../.. --exclude .git --exclude *.tar.gz -f hakurei_current.tar.gz .
+//go:embed hakurei_current.tar.gz
+var hakureiSourceTarball []byte
+
+// hakureiSource is the source code at the time this package is compiled.
+var hakureiSource = pkg.NewTar(pkg.NewFile(
+ "hakurei-current.tar.gz",
+ hakureiSourceTarball,
+), pkg.TarGzip)
+
+// hakureiPatches are patches applied against the compile-time source tree.
+var hakureiPatches [][2]string