Skip to content

Commit dc36256

Browse files
Updated Readme to cover new changes in Mac OS
1 parent 5985e85 commit dc36256

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,29 @@ Tested on Postman versions from *`8.1.0`* to *`8.10.0`*
1616
* `cd Postman-Scratchpad-Banner-Fix`
1717
* Run ***`npm install`*** to install dependencies
1818

19-
# Linux and MacOS
19+
# Linux
2020
# Usage
2121
## Patch your already installed postman
2222
Run ***`node fix.js -r ${requester_js}`*** , where ***`${requester_js}`*** is Postman file (***`requester.js`***) which renders scratchpad banner
2323

2424
### requester.js path:
25+
It can be found on path like this: ***`${Postman_install_dir}/resources/app/js/requester.js`***
2526

26-
* For Linux users, requester.js is used
27-
It can be found on path like this: ***`${Postman_install_dir}/resources/app/js/requester.js`***
27+
## Download patched postman
28+
You can find downloads for linux and macos at [Releases](https://github.com/3omar-mostafa/Postman-Scratchpad-Banner-Fix/releases)
29+
30+
# MacOS
31+
# Usage
32+
## Patch your already installed postman
33+
34+
* For Postman version `8.0.0` to `8.10.0`
35+
* Run ***`node fix.js -r ${requester_js}`*** , where ***`${requester_js}`*** is Postman file (***`requester.js`***) which renders scratchpad banner
36+
* ***`${requester_js}`*** can be found on path like this: ***`${Postman_install_dir}/Contents/Resources/app/js/requester.js`***
2837

29-
* For MacOS users, requester.js is used
30-
It can be found on path like this: ***`${Postman_install_dir}/Contents/Resources/app/js/requester.js`***
38+
* For Postman version `8.11.0` or above
39+
* Run ***`node fix.js -a ${app_asar}`*** , where ***`${app_asar}`*** is Postman file (***`app.asar`***) which is like a `tar` archive and contains most of postman's files
40+
* ***`${app_asar}`*** can be found on path like this: ***`${Postman_install_dir}/Contents/Resources/app.asar`***
41+
* You can learn more about *`asar`* file format [from here](https://github.com/electron/asar).
3142

3243
## Download patched postman
3344
You can find downloads for linux and macos at [Releases](https://github.com/3omar-mostafa/Postman-Scratchpad-Banner-Fix/releases)
@@ -59,7 +70,7 @@ I've made three changes to the file (they are redundant and any one of them is e
5970
* ***`_constants_ScratchpadConstants__WEBPACK_IMPORTED_MODULE_8__["SHOW_BANNER_IN_SCRATCHPAD"]`***
6071
* Modified this object to return ***`HIDE_SCRATCHPAD_BANNER`*** instead
6172

62-
If you are on windows, you can use [asar](https://github.com/electron/asar#command-line-utility) to extract ***`app.asar`*** and modify ***`requester.js`*** then repack it again
73+
If you are on windows/macos, you can use [asar](https://github.com/electron/asar#command-line-utility) to extract ***`app.asar`*** and modify ***`requester.js`*** then repack it again
6374

6475
# Notes
6576
This repo use github actions to automate checking for new releases every month, also can run manually for custom version

0 commit comments

Comments
 (0)