Skip to content

Commit

Permalink
resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
waymondrang committed Jul 19, 2022
2 parents 70e65db + 01a964c commit 38207d1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 28 deletions.
2 changes: 1 addition & 1 deletion git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ fi
git status
git add *
git commit -m " ${1} "
git push origin main
git push origin main
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ zip -r "${2}_${1}_${3}.zip" ./*

cd -

mv "${4}/${2}_${1}_${3}.zip" ${5}
mv "${4}/${2}_${1}_${3}.zip" ${5}
61 changes: 35 additions & 26 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ A bundle of scripts for automated packaging of browser extensions for different

```json
{
"project_name_short": "extbuild",
"enforce_version_control": true,
"clean_manifest": true,
"default_actions": ["copy"],
"release_directory": "../releases",
"source": {
"directory": "../src/chrome",
"platform": "chrome"
},
"targets": [
{
"directory": "../src/firefox",
"platform": "firefox",
"manifest_version": 2,
"patch": [],
"temp": true
}
],
"git_messages": {
"directory_sync": "automated directory sync",
"packages": "automated package build"
},
"debug": false
"project_name_short": "extbuild",
"enforce_version_control": true,
"clean_manifest": true,
"default_actions": ["copy"],
"release_directory": "../releases",
"source": {
"directory": "../src/chrome",
"platform": "chrome"
},
"targets": [
{
"directory": "../src/firefox",
"platform": "firefox",
"manifest_version": 2,
"patch": [],
"temp": true
}
],
"git_messages": {
"directory_sync": "automated directory sync",
"packages": "automated package build"
},
"debug": false,
"scripts_directory": "build_scripts\\"
}
```

Expand Down Expand Up @@ -88,7 +89,7 @@ An array of objects containing information on the build targets.

#### `directory`

The relative path of the source directory. If `temp` is `true`, this will be the relative path of the temporary directory. If the directory does not exist, one will be created.
The relative path of the source directory. If `temp` is `true`, this will be the relative path of the temporary directory. If the directory does not exist, one will be created.

#### `platform`

Expand All @@ -100,7 +101,7 @@ The manifest version of the target.

#### `patch`

Array of files to patch. Patches version and platform-specific methods, including changing `chrome` to `browser` for Firefox and `browserAction` to `action` for sync between manifest V2 and V3.
Array of files to patch. Patches version and platform-specific methods, including changing `chrome` to `browser` for Firefox and `browserAction` to `action` for sync between manifest V2 and V3.

`manifest.json` files will be synced by default, it does not need to be included in `patch`.

Expand All @@ -110,4 +111,12 @@ If `true`, the target directory will only be created if the package action is in

## `git_messages`

Commit messages used when the git action is invoked.
Commit messages used when the git action is invoked.

## `debug`

Extra console output

## `scripts_directory`

If invoking the script via `npm`, this field is required to point the program to the .sh scripts.

0 comments on commit 38207d1

Please sign in to comment.