Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
GarciaLnk committed Feb 8, 2024
0 parents commit 91e58d5
Show file tree
Hide file tree
Showing 59 changed files with 6,856 additions and 0 deletions.
Binary file added .ci/7zS.sfx
Binary file not shown.
31 changes: 31 additions & 0 deletions .ci/AppImageBuilder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
version: 1
script:
- rm -rf AppDir
- cp -r build/app-image AppDir
- mv AppDir/desksearx AppDir/usr
- mkdir -p AppDir/usr/share/applications
- cp src/main/resources/package/desksearx.desktop AppDir/usr/share/applications/desksearx.desktop
- mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
- cp src/main/resources/package/desksearx.png AppDir/usr/share/icons/hicolor/256x256/apps/desksearx.png
- which mksquashfs || apt install squashfs-tools
AppDir:
path: ./AppDir
app_info:
id: com.garcialnk.desksearx
name: DeskSearx
icon: desksearx
version: 1.0.0
exec: usr/bin/desksearx
exec_args: $@
files:
include:
- /usr/lib64/libc.so.6
- /usr/lib64/libdl.so.2
- /usr/lib64/libm.so.6
- /usr/lib64/libpthread.so.0
- /usr/lib64/librt.so.1
exclude:
- usr/lib/runtime/legal
AppImage:
arch: x86_64
Binary file added .ci/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Build

on:
push:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, windows-latest ]
java: [ "21" ]
distribution: [ "graalvm" ]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup MSYS2
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: mingw-w64-ucrt-x86_64-7zip
- name: Set up JDK (GraalVM)
uses: graalvm/setup-graalvm@v1
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Echo JAVA_HOME
run: echo $JAVA_HOME
- name: Verify Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- name: Execute build
run: ./gradlew --info --stacktrace build
- name: Execute jpackage
run: ./gradlew --info --stacktrace jpackage
- name: Run tests
run: ./gradlew --info --stacktrace test
- name: Build AppImage
if: matrix.os == 'ubuntu-20.04'
uses: AppImageCrafters/build-appimage@master
with:
recipe: .ci/AppImageBuilder.yml
- name: Build portable .exe
if: matrix.os == 'windows-latest'
shell: msys2 {0}
run: |
(cd build/app-image/desksearx && 7z a -m0=lzma2 -mx=0 -md=256m -mfb=8 -ms=off ../../tmp.7z) || exit
{
cat ".ci/7zS.sfx" &&
echo ';!@Install@!UTF-8!' &&
echo 'RunProgram="desksearx.exe"' &&
echo 'GUIMode="2"' &&
echo ';!@InstallEnd@!' &&
cat "build/tmp.7z"
} > "DeskSearx-1.0.0-x86_64.exe" || exit
- name: Upload image zip as an artifact
uses: actions/upload-artifact@v4
with:
name: desksearx-${{ matrix.os }}
path: build/app-image/desksearx
- name: Upload .AppImage as an artifact
uses: actions/upload-artifact@v4
with:
name: desksearx-linux-appimage
path: ./*.AppImage
- name: Upload .exe as an artifact
uses: actions/upload-artifact@v4
with:
name: desksearx-windows-exe
path: ./*.exe
103 changes: 103 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
### Gradle ###
.gradle
build/
**/build/
!gradle/wrapper/gradle-wrapper.jar
!gradle-wrapper.jar
!gradle/wrapper/gradle-wrapper.properties
!gradle-wrapper.properties
!**/src/main/**/build/
!**/src/test/**/build/
!src/**/build/
.gradletasknamecache
gradle-app.setting

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

### Java ###
*.class
*.log
*.ctxt
.mtj.tmp/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
hs_err_pid*
replay_pid*

### JetBrains ###
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
.idea/**/aws.xml
.idea/**/contentModel.xml
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea/**/gradle.xml
.idea/**/libraries
.idea/artifacts
.idea/*.iml
.idea/modules
cmake-build-*/
.idea/**/mongoSettings.xml
.idea_modules/
atlassian-ide-plugin.xml
.idea/replstate.xml
.idea/sonarlint/
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
.idea/httpRequests
.idea/caches/build_file_checksums.ser

### AppImage ###
*.AppImage
AppDir/
appimage-build
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/checkstyle-idea.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/cssdialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/google-java-format.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Alberto García

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 91e58d5

Please sign in to comment.