From 46d0aa6f9e438e2c28e05c267de279c3e2201023 Mon Sep 17 00:00:00 2001 From: Francis Bouvier Date: Tue, 29 Oct 2024 22:16:56 +0100 Subject: [PATCH] Remove all references to the name 'browsercore' Signed-off-by: Francis Bouvier --- .github/workflows/build.yml | 4 ++-- Makefile | 2 +- build.zig | 6 +++--- src/main_shell.zig | 2 +- src/main_wpt.zig | 2 +- src/run_tests.zig | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4ee27521..13c55252 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 -Dcpu=x86_64 - name: Rename binary - run: mv zig-out/bin/browsercore lightpanda-${{ env.ARCH }}-${{ env.OS }} + run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} - name: Upload the build uses: ncipollo/release-action@v1 @@ -65,7 +65,7 @@ jobs: run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8 - name: Rename binary - run: mv zig-out/bin/browsercore-get lightpanda-${{ env.ARCH }}-${{ env.OS }} + run: mv zig-out/bin/lightpanda lightpanda-${{ env.ARCH }}-${{ env.OS }} - name: Upload the build uses: ncipollo/release-action@v1 diff --git a/Makefile b/Makefile index c14e5cdb..0ca915b9 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ build-dev: ## Run the server in debug mode run: build @printf "\e[36mRunning...\e[0m\n" - @./zig-out/bin/browsercore || (printf "\e[33mRun ERROR\e[0m\n"; exit 1;) + @./zig-out/bin/lightpanda || (printf "\e[33mRun ERROR\e[0m\n"; exit 1;) ## Run a JS shell in debug mode shell: diff --git a/build.zig b/build.zig index d5638a1b..364c24cf 100644 --- a/build.zig +++ b/build.zig @@ -52,7 +52,7 @@ pub fn build(b: *std.Build) !void { // compile and install const exe = b.addExecutable(.{ - .name = "browsercore", + .name = "lightpanda", .root_source_file = b.path("src/main.zig"), .target = target, .optimize = mode, @@ -75,7 +75,7 @@ pub fn build(b: *std.Build) !void { // compile and install const shell = b.addExecutable(.{ - .name = "browsercore-shell", + .name = "lightpanda-shell", .root_source_file = b.path("src/main_shell.zig"), .target = target, .optimize = mode, @@ -124,7 +124,7 @@ pub fn build(b: *std.Build) !void { // compile and install const wpt = b.addExecutable(.{ - .name = "browsercore-wpt", + .name = "lightpanda-wpt", .root_source_file = b.path("src/main_wpt.zig"), .target = target, .optimize = mode, diff --git a/src/main_shell.zig b/src/main_shell.zig index 9e2510d9..fbb23660 100644 --- a/src/main_shell.zig +++ b/src/main_shell.zig @@ -87,5 +87,5 @@ pub fn main() !void { defer vm.deinit(); // launch shell - try jsruntime.shell(&arena, execJS, .{ .app_name = "browsercore" }); + try jsruntime.shell(&arena, execJS, .{ .app_name = "lightpanda-shell" }); } diff --git a/src/main_wpt.zig b/src/main_wpt.zig index 7a774fcc..49b7ba23 100644 --- a/src/main_wpt.zig +++ b/src/main_wpt.zig @@ -54,7 +54,7 @@ pub const UserContext = apiweb.UserContext; // TODO For now the WPT tests run is specific to WPT. // It manually load js framwork libs, and run the first script w/ js content in // the HTML page. -// Once browsercore will have the html loader, it would be useful to refacto +// Once lightpanda will have the html loader, it would be useful to refacto // this test to use it. pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; diff --git a/src/run_tests.zig b/src/run_tests.zig index d3f8fb99..a56d76dd 100644 --- a/src/run_tests.zig +++ b/src/run_tests.zig @@ -283,7 +283,7 @@ fn run_js(out: Out) !void { const row_shape = .{ []const u8, pretty.Measure, u64, u64, pretty.Measure }; const table = try pretty.GenerateTable(4, row_shape, pretty.TableConf{ .margin_left = " " }); const header = .{ "FUNCTION", "DURATION", "ALLOCATIONS (nb)", "RE-ALLOCATIONS (nb)", "HEAP SIZE" }; - var t = table.init("Benchmark browsercore 🚀", header); + var t = table.init("Benchmark lightpanda 🚀", header); try t.addRow(.{ "browser", dur, stats.alloc_nb, stats.realloc_nb, size }); try t.addRow(.{ "libdom", dur, 0, 0, zerosize }); // TODO get libdom bench info. try t.addRow(.{ "v8", dur, 0, 0, zerosize }); // TODO get v8 bench info.