Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/pyoncord/Bunny into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Jul 21, 2024
2 parents ffc04ee + 4469339 commit d09ce38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-nocheck
/* eslint-disable no-restricted-syntax */
import swc from "@swc/core";
import { execSync } from "child_process";
import crypto from "crypto";
import { build } from "esbuild";
import globalPlugin from "esbuild-plugin-globals";
Expand Down Expand Up @@ -113,7 +114,7 @@ const config = {

export async function buildBundle() {
context = {
hash: crypto.randomBytes(8).toString("hex").slice(0, 7)
hash: releaseBranch ? execSync("git rev-parse --short HEAD").toString().trim() : crypto.randomBytes(8).toString("hex").slice(0, 7)
};

const initialStartTime = performance.now();
Expand Down

0 comments on commit d09ce38

Please sign in to comment.