diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..408e3fd --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,34 @@ +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 (without private key) + run: | + mkdir -p output + chromium-browser --pack-extension=$PWD + mv $PWD.crx output/extension.crx + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: chrome-extension + path: output/extension.crx 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 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", {