Skip to content

Commit

Permalink
Initial version based on DBeaver 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Sep 30, 2018
0 parents commit ade86b5
Show file tree
Hide file tree
Showing 17 changed files with 318 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is for unifying the coding style for different editors and IDEs.
# More information at http://editorconfig.org

root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.go]
indent_style = tab
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
---

### Behaviour

#### Steps to reproduce this issue

1.
2.
3.

#### Expected behaviour

> Tell me what should happen
#### Actual behaviour

> Tell me what happens instead
### Configuration

**App release / arch (ex. 1.0.0-2 win64)** :

**Operating system (ex. Windows 10 Pro 64 bits)** :

**Winver screenshot** :

> Open a command prompt and type winver then take / save the screenshot of the window and drag the image file in this issue. For example: http://bit.ly/2vA5sxR
### Screenshots

> If applicable, add screenshots to help explain your problem.
### Logs

Join the log file `dbeaver-portable.log` to this issue.
10 changes: 10 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Support [![](https://isitmaintained.com/badge/resolution/portapps/dbeaver-portable.svg)](https://isitmaintained.com/project/portapps/dbeaver-portable)

## Submit an issue

Please follow [this guide](http://portapps.github.io/doc/reporting-issue/) to file a proper issue report.

## Closure policy

* Issues that don't have the information requested above (when applicable) will be closed immediately and the poster directed to the support guidelines.
* Issues that go a week without a response from original poster are subject to closure at our discretion.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Intellij
/.idea
/*.iml

# App
/.dev
/bin
/vendor
/*.syso
/*.exe
/versioninfo.json
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 5.2.1-1 (2018/09/29)

* Initial version based on DBeaver 5.2.1
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) 2018 CrazyMax

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.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<p align="center"><a href="https://portapps.github.io/app/dbeaver-portable" target="_blank"><img width="100" src="https://github.com/portapps/dbeaver-portable/blob/master/res/papp.png"></a></p>

<p align="center">
<a href="https://portapps.github.io/app/dbeaver-portable/#download"><img src="https://img.shields.io/github/release/portapps/dbeaver-portable.svg?style=flat-square" alt="GitHub release"></a>
<a href="https://portapps.github.io/app/dbeaver-portable/#download"><img src="https://img.shields.io/github/downloads/portapps/dbeaver-portable/total.svg?style=flat-square" alt="Total downloads"></a>
<a href="https://ci.appveyor.com/project/portapps/dbeaver-portable"><img src="https://img.shields.io/appveyor/ci/portapps/dbeaver-portable.svg?style=flat-square" alt="AppVeyor"></a>
<a href="https://goreportcard.com/report/github.com/portapps/dbeaver-portable"><img src="https://goreportcard.com/badge/github.com/portapps/dbeaver-portable?style=flat-square" alt="Go Report"></a>
<a href="https://www.codacy.com/app/portapps/dbeaver-portable"><img src="https://img.shields.io/codacy/grade/73cd2200303640ab8047af5d122eec08.svg?style=flat-square" alt="Code Quality"></a>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WQD7AQGPDEPSG"><img src="https://img.shields.io/badge/donate-paypal-7057ff.svg?style=flat-square" alt="Donate Paypal"></a>
</p>

## About

[DBeaver](https://dbeaver.io/) portable app made with 🚀 [Portapps](https://portapps.github.io).<br />
Documentation and downloads can be found on https://portapps.github.io/app/dbeaver-portable

## How can I help ?

All kinds of contributions are welcome :raised_hands:!<br />
The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon:<br />
But we're not gonna lie to each other, I'd rather you buy me a beer or two :beers:!

[![Paypal Donate](https://portapps.github.io/img/paypal-donate.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WQD7AQGPDEPSG)

## License

MIT. See `LICENSE` for more details.<br />
Rocket icon credit to [Squid Ink](http://thesquid.ink).
62 changes: 62 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
version: '{build}'

platform:
- x64

clone_folder: C:\projects\dbeaver-portable
test: off

environment:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
GOPATH: C:\gopath
GOROOT: C:\go\
GOVERSION: 1.11

install:
- ps: choco install ant
- ps: Install-Product node 8
- ps: $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- cmd: SET PATH=%GOPATH%\bin;%GOPATH%\bin\windows_386;%GOROOT%bin;%PATH%
- java -version
- ant -version
- node --version
- npm --version
- go version
- go env

configuration:
- Release

before_build:
- git clone https://github.com/portapps/portapps C:\projects\portapps

build_script:
- ant release

after_build:
- ps: |
$env:APP_VERSION = Get-Content C:\projects\dbeaver-portable\bin\tmp\version.dat -Raw
Write-Host "App version: $env:APP_VERSION"
artifacts:
- path: 'bin\release\*'
name: release

deploy:
tag: $(APP_VERSION)
release: $(APP_VERSION)
description: 'New release: $(APP_VERSION)'
provider: GitHub
auth_token:
secure: jFbo7oVnD9HZL5LL+nE0IC8x6xHlqvkeVDeMj/WS+Rk9GanjBKlnlvTjeHsNlo+/
artifact: release
draft: true
prerelease: false
on:
branch: master

notifications:
- provider: Webhook
url:
secure: 3V6QSptnPc6MYQn2S8/BzENJ5YDEn94VmCi2xmTCa0stiRA+hDKpyGaE0eVrW+sIhxIMoas74AE9613+5DVK/FyIFG40cSL1L4x+ePPe1Zm82NL2XMp5uS/G3M0vRPiBd+FOk7jEeAAQ+heUBXbFqw==
method: post
33 changes: 33 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Portapps
#core.dir = vendor/github.com/portapps/portapps
core.dir = ../portapps

# App
app = dbeaver
app.name = DBeaver
app.type = archive
app.version = 5.2.1

# Portable app
papp.id = ${app}-portable
papp.guid = {E541EA04-DF64-4B2C-88E4-4CD7C3CEA3E3}
papp.name = ${app.name} Portable
papp.desc = ${app.name} portable on Windows by Portapps
papp.url = https://github.com/portapps/${papp.id}
papp.folder = app

# Official artifacts
atf.id = dbeaver-ce
atf.win32.filename = ${atf.id}-${app.version}
atf.win32.ext = .zip
atf.win32.url = https://github.com/dbeaver/dbeaver/releases/download/${app.version}/${atf.id}-${app.version}-win32.win32.x86.zip
atf.win32.assertextract = dbeaver/dbeaver.exe
atf.win64.filename = ${atf.id}-${app.version}
atf.win64.ext = .zip
atf.win64.url = https://github.com/dbeaver/dbeaver/releases/download/${app.version}/${atf.id}-${app.version}-win32.win32.x86_64.zip
atf.win64.assertextract = dbeaver/dbeaver.exe

# JRE
jre.folder = jre1.8.0_181
jre.win32.url = https://dl.bintray.com/crazy/tools/jre-8u181-windows-i586.tar.gz
jre.win64.url = https://dl.bintray.com/crazy/tools/jre-8u181-windows-x64.tar.gz
48 changes: 48 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="dbeaver" basedir=".">

<dirname property="app.basedir" file="${ant.file.dbeaver}"/>
<property name="build.properties" value="${app.basedir}/build.properties"/>
<property file="${build.properties}"/>

<!-- Load Portapps core build -->
<property name="core.basedir" location="${app.basedir}\${core.dir}"/>
<fail unless="core.basedir" message="Core directory '${core.basedir}' not found in ${core.basedir}"/>
<echo message="Core found in ${core.basedir}" level="debug"/>

<!-- Import build-app.xml -->
<import file="${core.basedir}\.build\build-app.xml"/>

<!-- Targets -->
<target name="release" depends="release.app" description="Release"/>

<target name="prepare">
<echo message="Preparing release..."/>

<if>
<equals arg1="${atf.arch}" arg2="win32"/>
<then>
<get src="${jre.win32.url}" dest="${tmp.path}\${jre.folder}-win32.tar.gz" skipexisting="true"/>
<gunzip src="${tmp.path}\${jre.folder}-win32.tar.gz"/>
<untar src="${tmp.path}\${jre.folder}-win32.tar" dest="${tmp.path}"/>
<copydir src="${tmp.path}\${jre.folder}" dest="${extract.path}\dbeaver\jre"/>
</then>
<else>
<get src="${jre.win64.url}" dest="${tmp.path}\${jre.folder}-win64.tar.gz" skipexisting="true"/>
<gunzip src="${tmp.path}\${jre.folder}-win64.tar.gz"/>
<untar src="${tmp.path}\${jre.folder}-win64.tar" dest="${tmp.path}"/>
<copydir src="${tmp.path}\${jre.folder}" dest="${extract.path}\dbeaver\jre"/>
</else>
</if>

<move todir="${tmp.path}\extract2">
<fileset dir="${extract.path}\dbeaver"/>
</move>
<delete dir="${extract.path}"/>
<move todir="${extract.path}">
<fileset dir="${tmp.path}\extract2"/>
</move>

</target>

</project>
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/portapps/dbeaver-portable

require github.com/portapps/portapps v0.0.0-20180928223449-145469a5fd6f
11 changes: 11 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
github.com/akavel/rsrc v0.0.0-20170831122431-f6a15ece2cfd h1:yumR8733CaQ3P76MFbIbBKdrJmy4EqnQ5DIhqq8gq2Q=
github.com/akavel/rsrc v0.0.0-20170831122431-f6a15ece2cfd/go.mod h1:2+aQMrY0hBFBaIr2xxnZ/ctfwnYmMRMbTczYLAC34v4=
github.com/google/logger v0.0.0-20180208223940-54b4ae679a63 h1:rn2mY9gLAFndN3MKXUp8XvoyyNGX4pud5CJ8EClypDY=
github.com/google/logger v0.0.0-20180208223940-54b4ae679a63/go.mod h1:tQN+I/DyBt051hEHNEzPgIeyy/GD1WJaKbqPScoDKdY=
github.com/josephspurrier/goversioninfo v0.0.0-20180220052333-42534847954b h1:66x3jAln/h7rEkx8V1c6zAP/IW4tOlN21OLAJ9d1Vvg=
github.com/josephspurrier/goversioninfo v0.0.0-20180220052333-42534847954b/go.mod h1:eJTEwMjXb7kZ633hO3Ln9mBUCOjX2+FlTljvpl9SYdE=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/portapps/portapps v0.0.0-20180928223449-145469a5fd6f h1:1WRtrJFCaibzptj6Fy9FTbVAGwbFj7Qlcl6lLVbQxVs=
github.com/portapps/portapps v0.0.0-20180928223449-145469a5fd6f/go.mod h1:mkL9HVCCG3hMU/wuHHRQskU6Km4xwXQkO/H/chJEf28=
golang.org/x/sys v0.0.0-20180313075820-8c0ece68c283 h1:DE/w7won1Ns86VoWjUZ4cJS6//TObJntGkxuZ63asRc=
golang.org/x/sys v0.0.0-20180313075820-8c0ece68c283/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
30 changes: 30 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//go:generate go install -v github.com/josephspurrier/goversioninfo/cmd/goversioninfo
//go:generate goversioninfo -icon=res/papp.ico
package main

import (
"os"

. "github.com/portapps/portapps"
)

func init() {
Papp.ID = "dbeaver-portable"
Papp.Name = "DBeaver"
Init()
}

func main() {
Papp.AppPath = AppPathJoin("app")
Papp.DataPath = AppPathJoin("data")
Papp.Process = PathJoin(Papp.AppPath, "dbeaver.exe")
Papp.Args = []string{
"-data",
Papp.DataPath,
"-vm",
PathJoin(Papp.AppPath, "jre", "bin", "javaw.exe"),
}
Papp.WorkingDir = Papp.AppPath

Launch(os.Args[1:])
}
Binary file added res/app.ico
Binary file not shown.
Binary file added res/papp.ico
Binary file not shown.
Binary file added res/papp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/setup-mini.bmp
Binary file not shown.

0 comments on commit ade86b5

Please sign in to comment.