From 0b7adfd1d44801cb1c119774e4dac7b16d21aec5 Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Fri, 11 Apr 2025 11:29:53 +0800 Subject: [PATCH 1/6] change: Bing Icon From Microsoft's logo to Bing's --- public/img/bing.svg | 7 +------ public/img/msft.svg | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 public/img/msft.svg diff --git a/public/img/bing.svg b/public/img/bing.svg index b4a5b81..e2e29b7 100644 --- a/public/img/bing.svg +++ b/public/img/bing.svg @@ -1,6 +1 @@ - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/public/img/msft.svg b/public/img/msft.svg new file mode 100644 index 0000000..b4a5b81 --- /dev/null +++ b/public/img/msft.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file From 170d2f01d798e068214dd71f1e03bbcca0ca551f Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Thu, 17 Apr 2025 11:01:03 +0800 Subject: [PATCH 2/6] Change Bing Base URL --- src/api/bing.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/bing.ts b/src/api/bing.ts index 508c390..5028028 100644 --- a/src/api/bing.ts +++ b/src/api/bing.ts @@ -1,7 +1,7 @@ import axios from "@/plugins/axios" import { isEmpty } from "@/utils/common" -const BASE_URL = "https://cn.bing.com" +const BASE_URL = "https://www.bing.com" export async function getDailyWallpaperUrl(n: number = 1) { const { data } = await axios.get("/HPImageArchive.aspx", { From 87340670ae765cf43fda1c2030687d8689494332 Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Thu, 17 Apr 2025 11:03:41 +0800 Subject: [PATCH 3/6] Auto Build --- .github/workflows/package.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..698e133 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,41 @@ +name: Build Chrome Extension + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y chromium-browser zip + + - name: Create ZIP package + run: zip -r extension.zip . -x "*.git*" + + - name: Generate CRX + run: | + mkdir -p output + chromium-browser --pack-extension=$PWD --pack-extension-key=private-key.pem + mv $PWD.crx output/extension.crx + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: chrome-extension + path: output/extension.crx + + - name: Create GitHub release + uses: softprops/action-gh-release@v1 + with: + files: output/extension.crx + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 27ff67db7cb7ccebf6988c21e2d3ac7ebc8be071 Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Thu, 17 Apr 2025 11:05:33 +0800 Subject: [PATCH 4/6] Update package.yml --- .github/workflows/package.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 698e133..9197770 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -3,7 +3,7 @@ name: Build Chrome Extension on: push: branches: - - master + - main jobs: build: @@ -28,14 +28,7 @@ jobs: mv $PWD.crx output/extension.crx - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: chrome-extension path: output/extension.crx - - - name: Create GitHub release - uses: softprops/action-gh-release@v1 - with: - files: output/extension.crx - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 84f51078f896c818151d82deb3196438a8bf02ff Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Thu, 17 Apr 2025 11:06:23 +0800 Subject: [PATCH 5/6] Update package.yml --- .github/workflows/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 9197770..c85c807 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -3,7 +3,7 @@ name: Build Chrome Extension on: push: branches: - - main + - master jobs: build: From dfadd36c150c42c49b48204a43a558b5387bea77 Mon Sep 17 00:00:00 2001 From: NT_AUTHORITY Date: Thu, 17 Apr 2025 11:24:54 +0800 Subject: [PATCH 6/6] Update package.yml --- .github/workflows/package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index c85c807..408e3fd 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -21,10 +21,10 @@ jobs: - name: Create ZIP package run: zip -r extension.zip . -x "*.git*" - - name: Generate CRX + - name: Generate CRX (without private key) run: | mkdir -p output - chromium-browser --pack-extension=$PWD --pack-extension-key=private-key.pem + chromium-browser --pack-extension=$PWD mv $PWD.crx output/extension.crx - name: Upload artifacts