Skip to content

Commit

Permalink
build: bump fragmenter to v0.8.0 and specify version (#8955)
Browse files Browse the repository at this point in the history
* build: bump fragmenter to v0.8.0 and specify version

* build: oops
  • Loading branch information
Benjozork authored Sep 21, 2024
1 parent 7ec2702 commit 92b5771
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.1",
"@babel/preset-typescript": "~7.12.7",
"@flybywiresim/fragmenter": "^0.7.0",
"@flybywiresim/fragmenter": "^0.8.0",
"@flybywiresim/igniter": "^1.2.3",
"@flybywiresim/rnp": "^2.1.0",
"@navigraph/pkce": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions scripts/fragment-ingamepanels-checklist-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require('fs');
const execute = async () => {
try {
const result = await fragmenter.pack({
version: require('./fragmenter_version').version,
packOptions: { splitFileSize: 102_760_448, keepCompleteModulesAfterSplit: false },
baseDir: './fbw-ingamepanels-checklist-fix/out/flybywire-ingamepanels-checklist-fix',
outDir: './fbw-ingamepanels-checklist-fix/out/build-modules',
Expand Down
1 change: 1 addition & 0 deletions scripts/fragment_a32nx.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require('fs');
const execute = async () => {
try {
const result = await fragmenter.pack({
version: require('./fragmenter_version').version,
packOptions: { splitFileSize: 102_760_448, keepCompleteModulesAfterSplit: false },
baseDir: './fbw-a32nx/out/flybywire-aircraft-a320-neo',
outDir: './fbw-a32nx/out/build-modules',
Expand Down
1 change: 1 addition & 0 deletions scripts/fragment_a380x.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const fs = require('fs');
const execute = async () => {
try {
const result = await fragmenter.pack({
version: require('./fragmenter_version').version,
packOptions: { splitFileSize: 102_760_448, keepCompleteModulesAfterSplit: false },
baseDir: './fbw-a380x/out/flybywire-aircraft-a380-842',
outDir: './fbw-a380x/out/build-modules',
Expand Down
18 changes: 18 additions & 0 deletions scripts/fragmenter_version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const buildInfo = require('./git_build_info').getGitBuildInfo();
const packageInfo = require('../package.json');

let version;
if (packageInfo.edition === 'stable') {
version = `v${packageInfo.version}`;
} else {
const hash = buildInfo?.shortHash;

if (!hash) {
console.error('[!] buildInfo.shortHash is falsy');
process.exit(-1);
}

version = buildInfo.shortHash;
}

module.exports = { version };

0 comments on commit 92b5771

Please sign in to comment.