This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Name of your app. | |
| APP="Image Resizer Tech" | |
| # The path of your app to sign. | |
| APP_PATH="YOUR_PATH_TO_APP_AFTER_IT_WAS_PACKAGED/Image Resizer Tech.app" | |
| # The path to the location you want to put the signed package. | |
| RESULT_PATH="YOUR_RESULT_PATH/app-builds/mac/$APP.pkg" | |
| # The name of certificates you requested (use your ones). | |
| APP_KEY="3rd Party Mac Developer Application" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function debounce(callback, wait, immediate = false) { | |
| let timeout = null | |
| return function() { | |
| const callNow = immediate && !timeout | |
| const next = () => callback.apply(this, arguments) | |
| clearTimeout(timeout) | |
| timeout = setTimeout(next, wait) |