Skip to content

Commit b6113dc

Browse files
committed
Inline flag svgs into css, update dbip url
1 parent 2b2e079 commit b6113dc

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Download dbip database
18-
run: wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-09.mmdb.gz" | zcat > dbip.mmdb
18+
run: wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-11.mmdb.gz" | zcat > dbip.mmdb
1919
- uses: actions/upload-artifact@v3
2020
with:
2121
name: dbip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Prerequisites:
4141
- [rust 1.69](https://www.rust-lang.org/) or later
4242
- Geoip lookup database in mmdb format, put it in `src-tauri`
4343
```
44-
wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-09.mmdb.gz" | zcat > src-tauri/dbip.mmdb
44+
wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-11.mmdb.gz" | zcat > src-tauri/dbip.mmdb
4545
```
4646
You can get latest db from [db-ip.com](https://db-ip.com/db/download/ip-to-country-lite).
4747

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"tauri-dev": "tauri dev",
1010
"build": "tauri build",
11+
"build-bin": "tauri build -b none",
1112
"webpack-serve": "webpack serve --config webpack.dev.js",
1213
"webpack-dev": "webpack --config webpack.dev.js",
1314
"webpack-prod": "webpack --config webpack.prod.js",

webpack.common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export default (mode) => ({
9393
use: "ts-loader",
9494
exclude: /node_modules/,
9595
},
96+
{
97+
test: /\.svg$/,
98+
issuer: /\.css$/,
99+
type: "asset/inline",
100+
},
96101
{
97102
test: /\.svg$/i,
98103
issuer: /\.[jt]sx?$/,

0 commit comments

Comments
 (0)