Skip to content

Commit

Permalink
Use a studio define for the version string
Browse files Browse the repository at this point in the history
  • Loading branch information
jespertheend committed Feb 4, 2024
1 parent 754e7c7 commit 475ec97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion studio/src/projectSelector/ProjectSelector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {IndexedDbUtil} from "../../../src/util/IndexedDbUtil.js";
import {PromiseWaitHelper} from "../../../src/util/PromiseWaitHelper.js";
import {BUILD_VERSION_STRING} from "../studioDefines.js";
import {createSpinner} from "../ui/spinner.js";
import {IndexedDbStudioFileSystem} from "../util/fileSystems/IndexedDbStudioFileSystem.js";

Expand Down Expand Up @@ -44,7 +45,7 @@ export class ProjectSelector {

this.#versionEl = document.createElement("div");
this.#versionEl.classList.add("version");
this.#versionEl.textContent = "v0.1.0";
this.#versionEl.textContent = BUILD_VERSION_STRING;
headerEl.append(this.#versionEl);

this.actionsListEl = this.createList("actions", "Start");
Expand Down
1 change: 1 addition & 0 deletions studio/src/studioDefines.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const STUDIO_ENV = "dev";
*/
export const ENGINE_SOURCE_PATH = "/src/mod.js";

export const BUILD_VERSION_STRING = "v0.1.0";
export const BUILD_GIT_BRANCH = "dev";
/** @type {string} */
export const BUILD_GIT_COMMIT = "-";
Expand Down

0 comments on commit 475ec97

Please sign in to comment.