Skip to content

Commit

Permalink
RQLY-1046 fix: app signing (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsrCodes authored Jan 30, 2023
1 parent edb7584 commit b482060
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 10 deletions.
9 changes: 9 additions & 0 deletions assets/requirement.rqset
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
designated => (
(
certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = B7SH28MF39
)
or
(
certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = AFBT5Z9V94
)
)
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "requestly",
"productName": "Requestly",
"version": "1.4.21",
"version": "1.4.22",
"private": true,
"description": "Intercept & Modify HTTP Requests",
"scripts": {
Expand Down Expand Up @@ -52,6 +52,8 @@
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist",
"gatekeeperAssess": false,
"requirements": "assets/requirement.rqset",
"identity": "Sachin Jain (AFBT5Z9V94)",
"target": [
{
"target": "dmg",
Expand Down
4 changes: 2 additions & 2 deletions release/app/package-lock.json

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

2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "requestly",
"productName": "Requestly",
"version": "1.4.21",
"version": "1.4.22",
"private": true,
"description": "Intercept & Modify HTTP Requests",
"main": "./dist/main/main.js",
Expand Down
24 changes: 20 additions & 4 deletions src/lib/autoupdate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AutoUpdate {
constructor(webAppWindow) {
this.webAppWindow = webAppWindow;

log.transports.file.level = "info";
log.transports.file.level = 'verbose';
autoUpdater.logger = log;
// Now this is triggered after rendering UI
// autoUpdater.checkForUpdatesAndNotify();
Expand All @@ -42,6 +42,7 @@ class AutoUpdate {

init_events = () => {
autoUpdater.on("update-available", (updateInfo) => {
log.info("update available", updateInfo);
this.updateAvailable = true;
this.availableUpdateDetails = updateInfo;

Expand All @@ -50,11 +51,11 @@ class AutoUpdate {
});

autoUpdater.on("checking-for-update", () => {
console.log("checking-for-update");
log.info("checking-for-update");
});

autoUpdater.on("update-not-available", () => {
console.log("update-not-available");
log.info("update-not-available");
});

autoUpdater.on("download-progress", (progressObj) => {
Expand All @@ -64,6 +65,7 @@ class AutoUpdate {
});

autoUpdater.on("update-downloaded", (updateInfo) => {
log.info("update downloaded", updateInfo)
this.updateDownloaded = true;
this.downloadedUpdateDetails = updateInfo;

Expand All @@ -72,13 +74,27 @@ class AutoUpdate {
}
});

autoUpdater.on("err", (err)=> {
log.error("error received on autoupdater", err);
})

autoUpdater.on("before-quit-for-update", (info) => {
log.info("before-quit-for-update event triggered", info)
});

autoUpdater.on("before-quit", (info) => {
log.info("before-quit event triggered", info)
});

ipcMain.handle("check-for-updates-and-notify", () => {
autoUpdater.checkForUpdatesAndNotify();
});

ipcMain.handle("quit-and-install", () => {
log.info("recieved quit and install")
global.quitAndInstall = true;
autoUpdater.quitAndInstall();
let res = autoUpdater.quitAndInstall();
log.info("finished quit and install", res)
});
};
}
Expand Down

0 comments on commit b482060

Please sign in to comment.