all: update repository url
For the upcoming rename of security org to rosa. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -3,7 +3,7 @@ name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
@@ -15,8 +15,11 @@ jobs:
|
||||
|
||||
- name: Process static files
|
||||
run: >-
|
||||
nix build --print-out-paths --print-build-logs .#hakurei-static &&
|
||||
nix shell nixpkgs#gnutar nixpkgs#zstd --command tar -C result --zstd -cf hakurei.app-${{ github.ref_name }}.tar.zst .
|
||||
nix build \
|
||||
--print-out-paths \
|
||||
--print-build-logs \
|
||||
--out-link hakurei.app-${{ github.ref_name }}.tar.zst \
|
||||
.#dist
|
||||
|
||||
- name: Release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
|
||||
@@ -27,7 +27,7 @@ jobs:
|
||||
run: >-
|
||||
export HAKUREI_REV="$(git rev-parse --short HEAD)" &&
|
||||
sed -i.old 's/version = /version = "0.0.0-'$HAKUREI_REV'"; # version = /' package.nix &&
|
||||
nix build --print-out-paths --print-build-logs .#hakurei-static &&
|
||||
nix build --print-out-paths --print-build-logs .#static &&
|
||||
mv package.nix.old package.nix &&
|
||||
echo "rev=$HAKUREI_REV" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
18
flake.nix
18
flake.nix
@@ -67,17 +67,25 @@
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
let
|
||||
inherit (self.packages.${system}) hakurei-static caddy-hakurei-static;
|
||||
inherit (self.packages.${system}) static caddy;
|
||||
pkgs = nixpkgsFor.${system};
|
||||
in
|
||||
{
|
||||
default = caddy-hakurei-static;
|
||||
hakurei-static = pkgs.callPackage ./package.nix { };
|
||||
caddy-hakurei-static = pkgs.writeShellScriptBin "caddy-hakurei-static" ''
|
||||
default = caddy;
|
||||
static = pkgs.callPackage ./package.nix { };
|
||||
dist = pkgs.runCommand "hakurei-static-${static.version}.tar.zst" { } ''
|
||||
PATH="${pkgs.zstd}/bin:$PATH" \
|
||||
${pkgs.gnutar}/bin/tar \
|
||||
-C '${static}' \
|
||||
--zstd \
|
||||
-cf \
|
||||
"$out" .
|
||||
'';
|
||||
caddy = pkgs.writeShellScriptBin "caddy-hakurei-static" ''
|
||||
exec ${pkgs.caddy}/bin/caddy \
|
||||
file-server \
|
||||
-a -l ":49151" \
|
||||
-r ${hakurei-static}
|
||||
-r ${static}
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
runCommandNoCC,
|
||||
stdenv,
|
||||
runCommand,
|
||||
util-linux,
|
||||
moreutils,
|
||||
parallel,
|
||||
@@ -15,7 +15,7 @@
|
||||
python3,
|
||||
buildNpmPackage,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hakurei.app";
|
||||
version = "0.1.0";
|
||||
|
||||
@@ -41,7 +41,7 @@ stdenvNoCC.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
util-linux
|
||||
(runCommandNoCC "sponge" { } "mkdir -p $out/bin && ln -s ${moreutils}/bin/sponge $out/bin")
|
||||
(runCommand "sponge" { } "mkdir -p $out/bin && ln -s ${moreutils}/bin/sponge $out/bin")
|
||||
parallel
|
||||
openssl
|
||||
libxml2
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<h1><a href="#page-not-found">Page not found</a></h1>
|
||||
|
||||
<p>The requested page does not exist. If you think this is a mistake, please
|
||||
<a href="https://git.gensokyo.uk/security/hakurei.app/issues">report an issue</a>.</p>
|
||||
<a href="https://git.gensokyo.uk/rosa/hakurei.app/issues">report an issue</a>.</p>
|
||||
</main>
|
||||
{% include "footer.html" %}
|
||||
</body>
|
||||
|
||||
@@ -55,6 +55,6 @@
|
||||
|
||||
Hakurei is a collaboratively developed open source project.
|
||||
|
||||
See the repositories at https://git.gensokyo.uk/security for more details.
|
||||
See the repositories at https://git.gensokyo.uk/rosa for more details.
|
||||
|
||||
This website is developed in the https://git.gensokyo.uk/security/hakurei.app repository.
|
||||
This website is developed in the https://git.gensokyo.uk/rosa/hakurei.app repository.
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<meta name="color-scheme" content="dark light"/>
|
||||
<meta name="msapplication-TileColor" content="#ffffff"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
|
||||
<meta name="go-import" content="hakurei.app git https://git.gensokyo.uk/security/hakurei"/>
|
||||
<meta name="go-source" content="hakurei.app _ https://git.gensokyo.uk/security/hakurei/src/branch/master{/dir} https://git.gensokyo.uk/security/hakurei/src/branch/master{/dir}/{file}#L{line}"/>
|
||||
<meta name="go-import" content="hakurei.app git https://git.gensokyo.uk/rosa/hakurei"/>
|
||||
<meta name="go-source" content="hakurei.app _ https://git.gensokyo.uk/rosa/hakurei/src/branch/master{/dir} https://git.gensokyo.uk/rosa/hakurei/src/branch/master{/dir}/{file}#L{line}"/>
|
||||
<meta property="og:title" content="Hakurei: the secure desktop application sandbox"/>
|
||||
<meta property="og:description" content="Hakurei is a security-focused Linux container runtime for desktop applications."/>
|
||||
<meta property="og:type" content="website"/>
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
<p>Hakurei is a security-focused Linux container runtime for running unmodified
|
||||
desktop applications, developed as a non-profit <a
|
||||
href="https://git.gensokyo.uk/security/hakurei" target="_blank">open source</a>
|
||||
href="https://git.gensokyo.uk/rosa/hakurei" target="_blank">open source</a>
|
||||
project. It also implements <a href="/package.html">planterette</a>, an
|
||||
experimental self-contained Android-like package manager with modern security
|
||||
features.</p>
|
||||
@@ -81,9 +81,9 @@
|
||||
sandbox.</p>
|
||||
|
||||
<p>Official releases are available via <a
|
||||
href="https://git.gensokyo.uk/security/hakurei/releases" target="_blank">Gitea
|
||||
href="https://git.gensokyo.uk/rosa/hakurei/releases" target="_blank">Gitea
|
||||
</a> and documentation for the included NixOS module can be found
|
||||
<a href="https://git.gensokyo.uk/security/hakurei/src/branch/master/options.md"
|
||||
<a href="https://git.gensokyo.uk/rosa/hakurei/src/branch/master/options.md"
|
||||
target="_blank">here</a>.</p>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
|
||||
<p>Hakurei can be installed to almost any Linux-based operating system by running
|
||||
<code>install.sh</code> from a release tarball found <a
|
||||
href="https://git.gensokyo.uk/security/hakurei/releases" target="_blank">here</a>.
|
||||
href="https://git.gensokyo.uk/rosa/hakurei/releases" target="_blank">here</a>.
|
||||
With that said, the current easiest method for using Hakurei with desktop apps would be
|
||||
via the <a href="https://git.gensokyo.uk/security/hakurei/src/branch/master/options.md"
|
||||
via the <a href="https://git.gensokyo.uk/rosa/hakurei/src/branch/master/options.md"
|
||||
target="_blank">companion NixOS module</a>.</p>
|
||||
|
||||
<p>We strongly recommend using one of the official installation methods. Third party
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<footer>
|
||||
<a href="/"><img src="[[path|/mask-icon.svg]]" width="512" height="512" alt=""/>Hakurei</a>
|
||||
<ul id="social">
|
||||
<li><a href="https://git.gensokyo.uk/security">Gitea</a></li>
|
||||
<li><a href="https://git.gensokyo.uk/rosa">Gitea</a></li>
|
||||
<li><a href="/discord">Discord</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user