Skip to content

Commit

Permalink
Fix build failure related to copyright text
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 16, 2023
1 parent 91f4bb6 commit 68b3771
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion builderConfig.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
const fs = require("fs");

module.exports = () => {
const isWpilib = process.env.ASCOPE_DISTRIBUTOR === "WPILIB";
const package = JSON.parse(
fs.readFileSync("package.json", {
encoding: "utf-8"
})
);
return {
productName: isWpilib ? "AdvantageScope (WPILib)" : "AdvantageScope",
appId: "org.littletonrobotics.advantagescope",
copyright: "Copyright © 2021-2023 FRC 6328",
copyright: package.copyright,
npmRebuild: false,
publish: [],
afterSign: "notarize.js",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"productName": "AdvantageScope",
"version": "2.3.0",
"description": "Robot telemetry application for FRC",
"copyright": "Copyright © 2021-2023 FRC 6328",
"author": {
"name": "FRC 6328",
"email": "info@littletonrobotics.org",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function bundle(input, output, isMain, external = []) {
fs.readFileSync("package.json", {
encoding: "utf-8"
})
).build.copyright
).copyright
}
}),
replaceRegEx({
Expand Down

0 comments on commit 68b3771

Please sign in to comment.