Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.3 Release into master #7054

Merged
merged 63 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8dcc17f
Add functionality for automatic backup, backup restore, data access info
nbintertech Sep 2, 2024
69b9ae7
Cleanup and reset file input state
nbintertech Sep 2, 2024
1446267
Add tonnes conversion to CA, remove from shared method
nbintertech Sep 3, 2024
3a0e88d
Remove dubbing logs, cleanup
nbintertech Sep 4, 2024
f343447
Bump webpack and @angular-devkit/build-angular
dependabot[bot] Sep 5, 2024
3eb7ec1
Merge pull request #6994 from ORNL-AMO/issue-6925-1.5.2
nbintertech Sep 9, 2024
858eb5e
Merge pull request #6998 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Sep 9, 2024
56ea86c
Merge pull request #6995 from ORNL-AMO/issue-6991
rhernandez-intertech Sep 11, 2024
d2c0ffc
Bump path-to-regexp and express
dependabot[bot] Sep 13, 2024
fd7740e
Bump serve-static and express
dependabot[bot] Sep 17, 2024
8488c33
Bump send and express
dependabot[bot] Sep 17, 2024
fcdf815
Merge pull request #7008 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Sep 19, 2024
18cca82
Merge pull request #7011 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Sep 19, 2024
723cbb7
Merge pull request #7012 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Sep 19, 2024
e80d685
Bump vite and @angular-devkit/build-angular
dependabot[bot] Sep 19, 2024
2596f03
Merge pull request #7014 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Sep 19, 2024
ac4760b
revert back to 17.3.9
nbintertech Sep 19, 2024
e6eb2ca
Merge pull request #7016 from ORNL-AMO/build-angular-revert
rhernandez-intertech Sep 23, 2024
fc3d099
Bump rollup from 4.22.0 to 4.22.4
dependabot[bot] Sep 24, 2024
7874b8a
Merge pull request #7022 from ORNL-AMO/dependabot/npm_and_yarn/rollup…
nbintertech Sep 24, 2024
b23329d
Update efficiency class and efficiency help
nbintertech Sep 25, 2024
11e45f5
add citing and doi
nbintertech Sep 25, 2024
207517b
Updated electron.yml - added codesigning and hash updating for window…
esserhr Sep 4, 2024
ca0b533
Updated electron.yml - upgrade to actions/cache v4
esserhr Sep 25, 2024
b435d61
Updated electron.yml, web.yml - upgraded to upload and download-artif…
esserhr Sep 25, 2024
ab337a2
Updated electron.yml - reduce upload-artifact compression given binar…
esserhr Sep 25, 2024
a41f7bc
Fix new fuel modal percentage, load custom materials on start
nbintertech Sep 26, 2024
6a32e14
Send specified efficiency as percent, not decimal
nbintertech Sep 27, 2024
da7fe10
Remove option to hide fields/styling used in estimation
nbintertech Sep 30, 2024
f1f75d1
Change naming and input formatting for suite
nbintertech Sep 30, 2024
d331e01
Merge pull request #7025 from ORNL-AMO/issue-7017
rhernandez-intertech Sep 30, 2024
ab57d4e
Merge pull request #7026 from ORNL-AMO/issue-7009
rhernandez-intertech Sep 30, 2024
44fe9a8
Merge pull request #7029 from ORNL-AMO/issue-7000
rhernandez-intertech Sep 30, 2024
ffcac1e
Merge pull request #7033 from ORNL-AMO/issue-7032
rhernandez-intertech Sep 30, 2024
aadf4e8
Merge pull request #7028 from ORNL-AMO/automate-windows-build-signing
esserhr Sep 30, 2024
dc58d3b
fix toggle range slider error
nbintertech Oct 2, 2024
0edfe66
Validate bl and mod chiller load totals
nbintertech Oct 2, 2024
d36be46
Fix disabled histogram setting, add default data collect interval
nbintertech Oct 3, 2024
6d2558c
fix binding conversion for multi step unloading
rmroot Oct 8, 2024
d97a5e1
Merge pull request #7041 from ORNL-AMO/issue-7040
rhernandez-intertech Oct 8, 2024
783d640
Merge pull request #7037 from ORNL-AMO/issue-6940
rhernandez-intertech Oct 8, 2024
92dc233
Merge pull request #7038 from ORNL-AMO/issue-7035
rhernandez-intertech Oct 8, 2024
6ff61aa
Merge pull request #7039 from ORNL-AMO/issue-7005
rhernandez-intertech Oct 8, 2024
8d817f7
fix loadunload
rmroot Oct 8, 2024
b952ed6
Merge pull request #7042 from ORNL-AMO/issue-7040
rmroot Oct 8, 2024
4058f5e
bug fiz to PF Correction Calc
rhernandez-intertech Oct 9, 2024
4b52063
fix multi step unloading disabled field and errors
rmroot Oct 9, 2024
84fd4b6
Merge pull request #7044 from ORNL-AMO/issue-6921-bugfix
rhernandez-intertech Oct 9, 2024
05bf27b
Merge pull request #7046 from ORNL-AMO/issue-7040
nbintertech Oct 9, 2024
5ee297a
Bump cookie, express and socket.io
dependabot[bot] Oct 10, 2024
babc542
Change adjusted suite inputs from 7031, 7032
nbintertech Oct 10, 2024
7b1b265
Set additional series axis default to right if 2nd axis added
nbintertech Oct 11, 2024
14f6d4e
Fix improper update event for series name
nbintertech Oct 11, 2024
746a9c3
Merge pull request #7047 from ORNL-AMO/dependabot/npm_and_yarn/multi-…
nbintertech Oct 11, 2024
869396c
Merge pull request #7050 from ORNL-AMO/issue-6769
rhernandez-intertech Oct 11, 2024
14bb7d5
Merge pull request #7051 from ORNL-AMO/suite-742-changes
rhernandez-intertech Oct 11, 2024
5d74247
Release name now has MEASUR in it, remove plain text 'MEASUR'
nbintertech Oct 11, 2024
559e408
update version modal and package.json
nbintertech Oct 11, 2024
88c5465
update package-lock
nbintertech Oct 11, 2024
5cff964
Merge pull request #7052 from ORNL-AMO/issue-7006
nbintertech Oct 11, 2024
20b533e
Merge pull request #7053 from ORNL-AMO/release-updates-1.5.3
nbintertech Oct 11, 2024
3dacbc5
Updated electron.yml - fix typo to use ggrep instead of grep since ma…
esserhr Oct 11, 2024
1d6d355
Merge pull request #7055 from ORNL-AMO/hotfix/automate-windows-build-…
esserhr Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 40 additions & 23 deletions .github/workflows/electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@ jobs:
- name: Node setup
run: source ~/load_nvm.sh && nvm install ${{ env.BUILD_NODE_VER }}
- name: Cache setup
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Dependency setup
run: |
PROV_PROF_PATH=$RUNNER_TEMP/embedded.provisionprofile
WIN_CERT_PATH=$RUNNER_TEMP/wincert.pem
echo -n "${{ secrets.WIN_CERT_BASE64 }}" | base64 --decode -o $WIN_CERT_PATH &&
cp "$WIN_CERT_PATH" ./wincert.pem
echo -n "${{ secrets.APPLE_PROV_PROF_BASE64 }}" | base64 --decode -o $PROV_PROF_PATH &&
cp "$PROV_PROF_PATH" ./embedded.provisionprofile
npm ci --legacy-peer-deps &&
Expand All @@ -37,12 +40,22 @@ jobs:
- name: Package
run: |
(node ./node_modules/.bin/electron-builder --mac --universal --publish never &&
xcrun notarytool submit --wait \
--apple-id "${{ secrets.APPLE_ID }}" \
--password "${{ secrets.APPLE_APP_SECRET }}" \
--team-id "${{ secrets.APPLE_TEAM_ID }}" \
$(find ../output -name "MEASUR-*.*.*.dmg")) &
node ./node_modules/.bin/electron-builder --win --x64 --publish never &
xcrun notarytool submit --wait \
--apple-id "${{ secrets.APPLE_ID }}" \
--password "${{ secrets.APPLE_APP_SECRET }}" \
--team-id "${{ secrets.APPLE_TEAM_ID }}" \
$(find ../output -name "MEASUR-*.*.*.dmg")) &
(node ./node_modules/.bin/electron-builder --win --x64 --publish never &&
EXE_PATH=$(find ../output -name "MEASUR-Setup-*.*.*.exe") &&
java -jar ~/jsign.jar \
--storetype "${{ secrets.WIN_STORE_TYPE }}" \
--storepass "${{ secrets.WIN_STORE_SECRET }}" \
--tsaurl "http://timestamp.sectigo.com"
--certfile ./wincert.pem \
$EXE_PATH &&
(OLD_HASH=$(ggrep -o -P -m 1 '(?<=sha512:\s).*' ../output/latest.yml) &
NEW_HASH=$(node ~/gen_hash.js -f $EXE_PATH)) &&
sed 's|'$OLD_HASH'|'$NEW_HASH'|g' ../output/latest.yml) &
node ./node_modules/.bin/electron-builder --linux --x64 --publish never
- name: Prepare output
id: output
Expand All @@ -51,27 +64,28 @@ jobs:
echo "BUILD_VERSION=$VERSION" >> "$GITHUB_OUTPUT"
OUTPUTS_DIR=$(cd ../output/ && pwd)
echo "RUNNER_OUTDIR=$OUTPUTS_DIR" >> "$GITHUB_ENV"
ls -lah
- name: Upload notarization artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: d-output
name: init-mac-output
path: |
${{ env.RUNNER_OUTDIR }}/*.dmg
compression-level: 1
if-no-files-found: error
retention-days: 3
retention-days: 1
- name: Upload remaining artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: o-output
name: final-winux-output
path: |
${{ env.RUNNER_OUTDIR }}/*
!${{ env.RUNNER_OUTDIR }}/*-unpacked
!${{ env.RUNNER_OUTDIR }}/*-universal
!${{ env.RUNNER_OUTDIR }}/*.dmg
!${{ env.RUNNER_OUTDIR }}/builder-debug.yml
compression-level: 1
if-no-files-found: error
retention-days: 3
retention-days: 1
outputs:
BUILD_VERSION: ${{ steps.output.outputs.BUILD_VERSION }}

Expand All @@ -81,28 +95,31 @@ jobs:
needs: [build]
steps:
- name: Get artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: d-output
name: init-mac-output
- name: Notarize
run: xcrun stapler staple $(find ./ -name "MEASUR-*.*.*.dmg")
- name: Upload notarized artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: d-output
name: final-mac-output
path: ./*.dmg
compression-level: 1
if-no-files-found: error
retention-days: 3
retention-days: 1

release:
if: github.ref_name == 'master'
runs-on: ubuntu-22.04
needs: [notarization]
needs: [build,notarization]
env:
VERSION: ${{ needs.build.outputs.BUILD_VERSION }}
steps:
- name: Get artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
pattern: final-*
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/') # Uncomment if enabling tag gating
Expand All @@ -112,5 +129,5 @@ jobs:
draft: true # Comment out if enabling tag gating and publishing via action
generate_release_notes: false
files: |
d-output/*
o-output/*
final-mac-output/*
final-winux-output/*
10 changes: 6 additions & 4 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
- name: Build
run: npm run build-prod-web
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
if-no-files-found: error
retention-days: 3

deploy-dev:
if: github.ref_name == 'develop'
Expand All @@ -46,7 +48,7 @@ jobs:
BACKUP_DIR: /opt/actions-runner/backups
steps:
- name: Get artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
- name: Deploy
Expand All @@ -55,7 +57,7 @@ jobs:
rm -rf $APACHE_DIR/measur/*
chgrp -R apache ./
mv -v ./* $APACHE_DIR/measur/

deploy-prod:
if: github.ref_name == 'master'
runs-on: [self-hosted, prod]
Expand All @@ -65,7 +67,7 @@ jobs:
BACKUP_DIR: /opt/actions-runner/backups
steps:
- name: Get artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
- name: Deploy
Expand Down
27 changes: 23 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { app, BrowserWindow, ipcMain, crashReporter, Menu, shell } = require('electron');
const { app, BrowserWindow, ipcMain, crashReporter, Menu, shell, dialog } = require('electron');
const path = require('path');
const url = require('url');
const log = require('electron-log');
const { autoUpdater } = require('electron-updater');
const jetpack = require('fs-jetpack');


function isDev() {
Expand Down Expand Up @@ -45,7 +46,6 @@ app.on('ready', function () {
win.on('closed', function () {
win = null;
});

//signal from core.component to check for update
ipcMain.on('ready', (coreCompEvent, arg) => {
if (!isDev()) {
Expand Down Expand Up @@ -119,6 +119,10 @@ app.on('ready', function () {
});
});

app.on('window-all-closed', function () {
app.quit();
});

// Listen for message from core.component to either download updates or not
ipcMain.once('update', (event, arg) => {
log.info('update')
Expand All @@ -136,6 +140,21 @@ ipcMain.once('relaunch', () => {
});


app.on('window-all-closed', function () {
app.quit();
ipcMain.on("saveFile", (event, arg) => {
delete arg.fileData.dataBackupFilePath;
jetpack.writeAsync(arg.fileName, arg.fileData);
});

ipcMain.on("openDialog", (event, arg) => {
let saveDialogOptions = {
filters: [{
name: "JSON Files",
extensions: ["json"]
}],
defaultPath: arg.fileName
}
dialog.showSaveDialog(win, saveDialogOptions).then(results => {
win.webContents.send('backup-file-path', results.filePath);
});
});

Loading
Loading