Skip to content

Commit

Permalink
fix duplicate keys in fr and zh_CN locales; update README with minor …
Browse files Browse the repository at this point in the history
…changes; create gruntfile and node/npm/grunt project for easy zipping on any platform and ignoring unneeded files and directories
  • Loading branch information
ericjung committed Sep 24, 2023
1 parent 2f3717a commit ff6b1a8
Show file tree
Hide file tree
Showing 6 changed files with 1,651 additions and 4 deletions.
18 changes: 18 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = function(grunt) {

grunt.initConfig({
compress: {
main: {
options: {
archive: 'target.zip'
},
files: [
{expand: true, cwd: 'src/', src: ['**/*', '!.DS_Store', '!manifest-*', '!*.zip', '!screenshots/**'], dest: '/', filter: 'isFile'}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('default', ['compress']);
};
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Please post all feature requests to the [issues](https://github.com/foxyproxy/br
### Firefox
- Extension: [FoxyProxy Standard](https://addons.mozilla.org/firefox/addon/foxyproxy-standard/)
- Extension: [FoxyProxy Basic](https://addons.mozilla.org/firefox/addon/foxyproxy-basic/)
- Source Code: [Firefox Extension 7.5](https://github.com/foxyproxy/firefox-extension)
- Source Code: [Firefox Extension 7.5.1](https://github.com/foxyproxy/firefox-extension/tags/7.5.1)

#### Chrome
- Extension: [FoxyProxy Standard](https://chrome.google.com/webstore/detail/foxyproxy-standard/gcknhkkoolaabfmlnjonogaaifnjlfnp)
Expand All @@ -42,3 +42,7 @@ Please post all feature requests to the [issues](https://github.com/foxyproxy/br
- Enable Developer Mode (top right)
- Click "Load Unpacked"
- Select above `manifest.json` (or `src` folder)

### Building for Distribution
- copy the appropriate manifest-xxx.json file to manifest.json; e.g. `mv manifest-chrome.json manifest.json`
- zip using [grunt](https://stackoverflow.com/questions/15703598/how-to-install-grunt-and-how-to-build-script-with-it), which requires npm and node. Run `grunt` in top-level directory. The add-on is packaged into `target.zip`. Alternatively, zip the `src` directory into the top of an archive and exclude a bunch of stuff manually.
Loading

0 comments on commit ff6b1a8

Please sign in to comment.