Skip to content

Commit feb531d

Browse files
adminadmin
authored andcommitted
devop: setup workflow
1 parent ac9dac0 commit feb531d

7 files changed

Lines changed: 74 additions & 10 deletions

File tree

.github/workflows/macos-deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: MacOS Safari Deploy
2+
3+
on: [push]
4+
5+
jobs:
6+
deploy:
7+
name: Deploying to Testflight
8+
runs-on: macOS-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
14+
- name: Deploy iOS Beta to TestFlight via Fastlane
15+
uses: maierj/fastlane-action@v2.2.0
16+
with:
17+
lane: "buildandrelease"
18+
subdirectory: "macos/Enkrypt"
19+
env:
20+
APPLE_ID: "${{ secrets.OSX_APPLE_ID }}"
21+
APP_ID: "${{ secrets.OSX_APP_ID }}"
22+
FASTLANE_USER: "${{ secrets.OSX_APPLE_ID }}"
23+
FASTLANE_ITC_TEAM_ID: "${{ secrets.OSX_FASTLANE_ITC_TEAM_ID }}"
24+
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: "${{ secrets.OSX_FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}"
25+
ITC_TEAM_ID: "${{ secrets.OSX_FASTLANE_ITC_TEAM_ID }}"
26+
INSTALLER_CERT: "${{ secrets.OSX_INSTALLER_CERT }}"
27+
SAFARI_PROVISION: "${{ secrets.OSX_SAFARI_PROVISION }}"
28+
EXTENSION_PROVISION: "${{ secrets.OSX_EXTENSION_PROVISION }}"
29+
MATCH_GIT_URL: "${{ secrets.OSX_MATCH_GIT_URL }}"
30+
MATCH_PASSWORD: "${{ secrets.OSX_MATCH_PASSWORD }}"
31+
GIT_AUTHORIZATION: "${{ secrets.OSX_GIT_AUTHORIZATION }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ typings/
7171
# dotenv environment variables file
7272
.env
7373
.env.test
74+
.env.sh
7475

7576
# parcel-bundler cache (https://parceljs.org/)
7677
.cache

packages/extension/.browserlistrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
last 2 versions
22
not dead
3-
not safari > 0
4-
not ios_saf > 0
53
not baidu > 0
64
not ie > 0
75
not op_mini all

packages/extension/configs/browser-build.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const browserNames = {
88
chrome: "chrome",
99
firefox: "firefox",
1010
opera: "opera",
11+
safari: "safari",
1112
};
1213

1314
const browserConfigs = {
@@ -20,6 +21,9 @@ const browserConfigs = {
2021
[browserNames.opera]: {
2122
manifest: "./src/manifest/manifest-opera.json",
2223
},
24+
[browserNames.safari]: {
25+
manifest: "./src/manifest/manifest-safari.json",
26+
},
2327
};
2428
function modifyManifest(buffer) {
2529
const manifest = { ...baseManifest, ...JSON.parse(buffer.toString()) };
@@ -33,7 +37,7 @@ const scripts = {
3337
};
3438

3539
const setConfig = (config) => {
36-
for (let [name, path] of Object.entries(scripts)) {
40+
for (const [name, path] of Object.entries(scripts)) {
3741
config.entry(name).add(path).end();
3842
}
3943
const userScripts = Object.keys(scripts);

packages/extension/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build:chrome": "cross-env BROWSER='chrome' vue-cli-service build && yarn build:rollup",
88
"build:firefox": "cross-env BROWSER='firefox' vue-cli-service build && yarn build:rollup",
99
"build:opera": "cross-env BROWSER='opera' vue-cli-service build && yarn build:rollup",
10+
"build:safari": "cross-env BROWSER='safari' vue-cli-service build && yarn build:rollup",
1011
"build": "yarn build:chrome",
1112
"lint": "vue-cli-service lint --fix",
1213
"build:rollup": "cross-env minify=on rollup --config configs/rollup.config.contentscript.js && cross-env minify=on rollup --config configs/rollup.config.inject.js",
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Enkrypt: Ethereum & Polkadot Web3 Wallet",
3+
"manifest_version": 3,
4+
"action": {
5+
"default_icon": {
6+
"16": "assets/img/icons/icon16.png",
7+
"32": "assets/img/icons/icon32.png",
8+
"64": "assets/img/icons/icon64.png",
9+
"192": "assets/img/icons/icon192.png"
10+
},
11+
"default_title": "Enkrypt",
12+
"default_popup": "action.html"
13+
},
14+
"background": {
15+
"service_worker": "scripts/background.js"
16+
},
17+
"web_accessible_resources": [
18+
{
19+
"resources": ["scripts/inject.js", "scripts/*.js.map"],
20+
"use_dynamic_url": false,
21+
"matches": ["http://*/*", "https://*/*"]
22+
}
23+
],
24+
"minimum_chrome_version": "95",
25+
"content_security_policy": {
26+
"extension_pages": "script-src 'self'; object-src 'self'"
27+
},
28+
"permissions": ["storage", "unlimitedStorage", "tabs", "clipboardWrite"]
29+
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@import "./color.less";
22

33
* {
4-
-webkit-touch-callout: none;
5-
-webkit-user-select: none;
6-
-khtml-user-select: none;
7-
-moz-user-select: none;
8-
-ms-user-select: none;
9-
user-select: none;
10-
}
4+
-webkit-touch-callout: default;
5+
-webkit-user-select: default;
6+
-khtml-user-select: default;
7+
-moz-user-select: default;
8+
-ms-user-select: default;
9+
user-select: default;
10+
}

0 commit comments

Comments
 (0)