Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions public/img/bing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/img/msft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/api/bing.ts
Original file line number Diff line number Diff line change
@@ -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<any>("/HPImageArchive.aspx", {
Expand Down