diff --git a/.github/workflows/pkg.yml b/.github/workflows/pkg.yml index f750d2f..70a972c 100644 --- a/.github/workflows/pkg.yml +++ b/.github/workflows/pkg.yml @@ -13,16 +13,21 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 - - run: npm install -g yarn - - run: yarn install + node-version: 16.15.0 + - run: npm install -g yarn@1.22.19 build-mac: runs-on: ubuntu-latest needs: setup steps: + - uses: actions/setup-node@v3 + with: + node-version: 16.15.0 + - uses: actions/checkout@v3 + - run: yarn install - run: rm -rf build - run: yarn dist:production_mac + continue-on-error: true upload-mac: runs-on: ubuntu-latest @@ -31,6 +36,7 @@ jobs: contents: read packages: write steps: + - uses: actions/checkout@v3 - run: echo "::set-env name=PACKAGE_VERSION::$(node -p "require('./package.json').version")" - name: Upload mac pkg uses: actions/upload-artifact@v3.1.3 diff --git a/package.json b/package.json index 983c58a..9c7e014 100644 --- a/package.json +++ b/package.json @@ -45,15 +45,6 @@ "directories": { "output": "build" }, - "publish": [ - { - "provider": "s3", - "region": "cn-northwest-1", - "bucket": "vika-client-download", - "endpoint": "https://s3.cn-northwest-1.amazonaws.com.cn", - "path": "/integration" - } - ], "win": { "icon": "public/icon_win.png", "target": [ diff --git a/scripts/modify_package.sh b/scripts/modify_package.sh index f0b561f..6da46b7 100755 --- a/scripts/modify_package.sh +++ b/scripts/modify_package.sh @@ -7,11 +7,11 @@ else fi -if [[ "$OSTYPE" == "darwin"* ]]; then +if [ "$OSTYPE" == "darwin"* ]; then # 修改架构 sed -i "" "s/\"arch\"\:.*\".*\"/\"arch\"\: \"$1\"/" ./package.json # 修改包名 sed -i "" "s/\"artifactName\"\:.*\".*\"/\"artifactName\"\: \"$name\"/" ./package.json else sed -i "s/\"arch\"\:.*\".*\"/\"arch\"\: \"$1\"/" ./package.json -fi \ No newline at end of file +fi