Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ivangabriele/clamav-desktop
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.24
Choose a base ref
...
head repository: ivangabriele/clamav-desktop
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 310 changed files with 32,812 additions and 6,911 deletions.
25 changes: 25 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://json.schemastore.org/commitlintrc",
"extends": "@ivangabriele/commitlint-config",
"helpUrl": "https://github.com/ivangabriele/clamav-desktop/blob/main/CONTRIBUTING.md#commit-messages",
"rules": {
"type-enum": [
2,
"always",
[
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"lint",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
Empty file added .dev/.gitkeep
Empty file.
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -14,5 +14,35 @@ trim_trailing_whitespace = true
max_line_length = 0
trim_trailing_whitespace = false

[*.{c,cpp,h,hpp}]
indent_size = 4

[*.ps1]
indent_size = 4

[*.py]
indent_size = 4

[*.rs]
indent_size = 4
max_line_length = 80

[*.xml]
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 0

[Makefile]
indent_size = 8
indent_style = tab
max_line_length = 80

# Ignored files
[*.{asc,cer,crt,der,key,pem}]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Dev-only env variables
REACT_APP_PROJECT_ROOT_PATH="/home/me/projects/clamav-desktop"
48 changes: 0 additions & 48 deletions .eslintrc

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [ivangabriele]
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug", "triage"]

assignees:
- ivangabriele

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. email@example.com
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: dropdown
id: version
attributes:
label: Version
description: What version of our software are you running?
options:
- 1.0.2 (Default)
- 1.0.3 (Edge)
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
options:
- label: I agree to follow this project's Code of Conduct
required: true
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Description

A clear and concise description of what your pull request is about.

## Checklist

- [ ] I updated the documentation accordingly. Or I don't need to.
- [ ] I updated the tests accordingly. Or I don't need to.
11 changes: 10 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": ["github>ivangabriele/renovate-config"]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>ivangabriele/renovate-config"],
"labels": ["internal"],
"packageRules": [
{
"matchPackagePatterns": ["^@wdio/"],
"groupName": "WebdriverIO Dependencies",
"enabled": false
}
]
}
63 changes: 63 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Analysis

on:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
# Every day at 12:00 UTC
- cron: '0 12 * * *'

concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
codeql:
name: CodeQL (${{ matrix.label }})
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
# Required for all workflows
security-events: write
# Required to fetch internal or private CodeQL packs
packages: read
strategy:
fail-fast: false
matrix:
include:
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
- language: 'javascript-typescript'
# Analyze the source code without building it
build-mode: none
label: 'JavaScript/TypeScript'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: 'security-and-quality,security-extended'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'

cargo_audit:
name: Cargo Audit
runs-on: 'ubuntu-latest'
container:
image: ivangabriele/tauri:debian-bookworm-22
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run
run: cargo audit
working-directory: ./src-tauri
130 changes: 130 additions & 0 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
name: Bundle

on:
push:
branches: ['main']
pull_request:
branches: ['main']

concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
bundle_deb:
name: Bundle DEB (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
# target: ['aarch64-unknown-linux-gnu', 'x86_64-unknown-linux-gnu']
target: ['x86_64-unknown-linux-gnu']
runs-on: ubuntu-latest
container:
image: ivangabriele/tauri:debian-bookworm-22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install core build requirements
run: make setup-debian
# - if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
# name: Install ARM64 build requirements
# run: |
# make setup-debian-arm64
# ln -sf /usr/bin/pkg-config /usr/bin/aarch64-linux-gnu-pkg-config
# echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: 'cargo,clippy,rust-docs,rust-src,rustc,rustfmt'
rustflags: ''
target: ${{ matrix.target }}
toolchain: '1.80'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 22
- name: Prepare
run: yarn --frozen-lockfile
- name: Bundle
run: yarn bundle:deb --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}.deb
path: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
retention-days: 1

bundle_dmg:
name: Bundle DMG (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
target: ['aarch64-apple-darwin', 'x86_64-apple-darwin']
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install core build requirements
run: make setup-macos
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: 'cargo,clippy,rust-docs,rust-src,rustc,rustfmt'
target: ${{ matrix.target }}
rustflags: ''
toolchain: '1.80'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 22
- name: Prepare
run: yarn --frozen-lockfile
- name: Bundle
run: yarn bundle:dmg --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}.dmg
path: src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg
retention-days: 1

bundle_msi:
name: Bundle MSI (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
target: ['aarch64-pc-windows-msvc', 'x86_64-pc-windows-msvc']
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: 'cargo,clippy,rust-docs,rust-src,rustc,rustfmt'
rustflags: ''
target: ${{ matrix.target }}
toolchain: '1.80'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: yarn
node-version: 22
- name: Prepare
run: yarn --frozen-lockfile
- name: Bundle
run: yarn bundle:msi --target ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}.msi
path: src-tauri/target/${{ matrix.target }}/release/bundle/msi/*.msi
retention-days: 1
Loading