-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version based on Rambox 0.6.9
- Loading branch information
0 parents
commit 8f24108
Showing
15 changed files
with
298 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
os: windows | ||
language: shell | ||
|
||
env: | ||
global: | ||
- GOVERSION: 1.12.4 | ||
- NODEJS_VERSION: 11.14.0 | ||
|
||
before_install: | ||
- git clone https://github.com/portapps/portapps ${TRAVIS_BUILD_DIR}/../portapps | ||
- source ${TRAVIS_BUILD_DIR}/../portapps/.travis/prepare.sh | ||
- bash ${TRAVIS_BUILD_DIR}/../portapps/.travis/java.sh | ||
- bash ${TRAVIS_BUILD_DIR}/../portapps/.travis/ant.sh | ||
- bash ${TRAVIS_BUILD_DIR}/../portapps/.travis/nodejs.sh | ||
- bash ${TRAVIS_BUILD_DIR}/../portapps/.travis/go.sh | ||
|
||
script: | ||
- ant release | ||
|
||
after_success: | ||
- export APP_VERSION=$(cat $TRAVIS_BUILD_DIR/bin/tmp/version.dat) | ||
- echo ${APP_VERSION} | ||
|
||
before_deploy: | ||
- git config --local user.email "builds@travis-ci.com" | ||
- git config --local user.name "Travis CI" | ||
- export TRAVIS_TAG="${APP_VERSION}" | ||
- git tag $TRAVIS_TAG | ||
- ls -al bin/release | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: okNVaygdahGcqUq57k2nWGmKBqcE6WfVUDs7YGg5kNNJboYwnomU+fMGmSZvTpDDXWcXOMeaSHNNaz0j5tYu508dlpCvi67/vzH15NTlJYb9KqgNeK+BAzMsoqf9A0lQlauR4XTMG45Ix3vszYOjXIPjx/Mj8ByJqjegAzGbrqtlBjoopFh7C9P3IaK6tG0ZSlEea+8WSbLvdav9+4q7qBnI4Ec7IcuKgCYsZhj49zNjZ1NHqKc/KfwPTPMBr/5FeGOBoKfXdkW/alCqsRmXtrtRH8CwOP11uy0wPoetkWAz/UdwiE5EG2fgwrl5JEZxSy0WHsr8MNUc0c7gFd97w57IDFhGXMLr2/c9jw1LbrgrKbvO+CWBYktIc36GZLcno98bQQGxrOqMwA+2WMk0I3pJKO3dHq4yGeIow7f4QfVsYgqYRA8Z+iehWLZoNb+CvtBTAK/edlk8XULjad2RorA+2SRgAgwdI78nKJIcNUj61E0Tgyec0h5bIuGbNCRK9AYDRqZyHMc95p3iyJSsjAMDoBDLbGKiEDblLIRcL88DxUIY16Kgx8qWoZLHvkevFh9gKlXv91n53ePRLJ26+EoK6BVMpWJ7bjOm4xcvPTdhPxohPHyTP3MsoGw8ZIb6O70Yfc0dW1THBEzxWULetnMQMg4V2J/GKO81VT/sZlc= | ||
file_glob: true | ||
file: bin/release/* | ||
skip_cleanup: true | ||
draft: true | ||
on: | ||
tags: false | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- travisci@portapps.io | ||
on_success: always | ||
on_failure: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## 0.6.9-1 (2019/07/24) | ||
|
||
* Initial version based on Rambox 0.6.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<p align="center"><a href="https://portapps.io/app/rambox-portable/" target="_blank"><img width="100" src="https://github.com/portapps/rambox-portable/blob/master/res/papp.png"></a></p> | ||
|
||
<p align="center"> | ||
<a href="https://portapps.io/app/rambox-portable/#download"><img src="https://img.shields.io/github/release/portapps/rambox-portable.svg?style=flat-square" alt="GitHub release"></a> | ||
<a href="https://portapps.io/app/rambox-portable/#download"><img src="https://img.shields.io/github/downloads/portapps/rambox-portable/total.svg?style=flat-square" alt="Total downloads"></a> | ||
<a href="https://travis-ci.com/portapps/rambox-portable"><img src="https://img.shields.io/travis/com/portapps/rambox-portable/master.svg?style=flat-square" alt="Build Status"></a> | ||
<a href="https://github.com/portapps/portapps"><img src="https://img.shields.io/badge/portapps-1.24.1-479fdb.svg?style=flat-square" alt="Portapps version"></a> | ||
<a href="https://goreportcard.com/report/github.com/portapps/rambox-portable"><img src="https://goreportcard.com/badge/github.com/portapps/rambox-portable?style=flat-square" alt="Go Report"></a> | ||
<a href="https://www.codacy.com/app/portapps/rambox-portable"><img src="https://img.shields.io/codacy/grade/ee6a79cd8f994b23a17e22ce2a7a5585.svg?style=flat-square" alt="Code Quality"></a> | ||
<br /><a href="https://www.patreon.com/crazymax"><img src="https://img.shields.io/badge/donate-patreon-fb664e.svg?style=flat-square" alt="Support me on Patreon"></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> | ||
|
||
## Notice of Non-Affiliation and Disclaimer | ||
|
||
Portapps is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Rambox™, or any of its subsidiaries or its affiliates. | ||
|
||
The official Rambox™ website can be found at https://rambox.pro/#ce. | ||
|
||
The name Rambox™ as well as related names, marks, emblems and images are registered trademarks of their respective owners. | ||
|
||
## About | ||
|
||
Rambox™ portable app made with 🚀 [Portapps](https://portapps.io).<br /> | ||
Documentation and downloads can be found on https://portapps.io/app/rambox-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:! | ||
|
||
[](https://www.patreon.com/crazymax) | ||
[](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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Portapps | ||
core.dir = ../portapps | ||
|
||
# App | ||
app = rambox | ||
app.name = Rambox | ||
app.type = archive | ||
app.version = 0.6.9 | ||
app.homepage = https://rambox.pro/#ce | ||
|
||
# Portable app | ||
papp.id = ${app}-portable | ||
papp.guid = {2B398F7F-1B3C-44BA-8BBF-EBF74EE1BF9E} | ||
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 | ||
|
||
# Electron | ||
electron.userdata.file = browser/init.js | ||
electron.userdata.search = app.setPath('userData', path.join(app.getPath('appData'), app.getName())) | ||
electron.userdata.replace = app.setPath('userData', path.join(path.dirname(process.execPath), '..', 'data')) | ||
|
||
# Official artifacts | ||
atf.id = Rambox | ||
atf.win32.filename = RamboxSetup-win | ||
atf.win32.ext = .exe | ||
atf.win32.url = https://github.com/ramboxapp/community-edition/releases/download/${app.version}/Rambox-${app.version}-win.exe | ||
atf.win32.assertextract = $PLUGINSDIR/app-32.7z | ||
atf.win64.filename = RamboxSetup-win | ||
atf.win64.ext = .exe | ||
atf.win64.url = https://github.com/ramboxapp/community-edition/releases/download/${app.version}/Rambox-${app.version}-win.exe | ||
atf.win64.assertextract = $PLUGINSDIR/app-64.7z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="rambox" basedir="."> | ||
|
||
<dirname property="app.basedir" file="${ant.file.rambox}"/> | ||
<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..."/> | ||
|
||
<echo message="Extracting embedded ${atf.arch} archive"/> | ||
<property name="extract.path2" value="${tmp.path}\extract2"/> | ||
<if> | ||
<equals arg1="${atf.arch}" arg2="win32"/> | ||
<then> | ||
<sevenzip-ax src="${extract.path}\$PLUGINSDIR\app-32.7z" dest="${extract.path2}"/> | ||
</then> | ||
<else> | ||
<sevenzip-ax src="${extract.path}\$PLUGINSDIR\app-64.7z" dest="${extract.path2}"/> | ||
</else> | ||
</if> | ||
<delete dir="${extract.path}"/> | ||
<move todir="${extract.path}"> | ||
<fileset dir="${extract.path2}"/> | ||
</move> | ||
|
||
<setelectronuserdata path="${extract.path}" | ||
file="${electron.userdata.file}" | ||
search="${electron.userdata.search}" | ||
replace="${electron.userdata.replace}" | ||
/> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/portapps/rambox-portable | ||
|
||
go 1.12 | ||
|
||
require github.com/portapps/portapps v1.24.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
github.com/akavel/rsrc v0.8.0 h1:zjWn7ukO9Kc5Q62DOJCcxGpXC18RawVtYAGdz2aLlfw= | ||
github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= | ||
github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= | ||
github.com/ilya1st/rotatewriter v0.0.0-20171126183947-3df0c1a3ed6d h1:OGuVAVny/97zsQ5BWg0mOjzTBBD9zR+Lug1co144+rU= | ||
github.com/ilya1st/rotatewriter v0.0.0-20171126183947-3df0c1a3ed6d/go.mod h1:S1q6q+21PRGd0WRX+fHjQ+TOe3CgpSv7zgCWnZcbxCs= | ||
github.com/josephspurrier/goversioninfo v0.0.0-20190209210621-63e6d1acd3dd h1:KikNiFwUO3QLyeKyN4k9yBH9Pcu/gU/yficWi61cJIw= | ||
github.com/josephspurrier/goversioninfo v0.0.0-20190209210621-63e6d1acd3dd/go.mod h1:eJTEwMjXb7kZ633hO3Ln9mBUCOjX2+FlTljvpl9SYdE= | ||
github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE= | ||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= | ||
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= | ||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||
github.com/portapps/portapps v1.24.1 h1:IImx122R3hlxS3NO4+jv1Bl5Lwx6tfSJHON9V3lBirU= | ||
github.com/portapps/portapps v1.24.1/go.mod h1:moHBbP37oZnyrc0jjlY3ZW9R+W43/XHGgkHJ9m77W0g= | ||
github.com/rs/zerolog v1.13.0 h1:hSNcYHyxDWycfePW7pUI8swuFkcSMPKh3E63Pokg1Hk= | ||
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= | ||
golang.org/x/sys v0.0.0-20190416152802-12500544f89f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= | ||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
//go:generate go install -v github.com/josephspurrier/goversioninfo/cmd/goversioninfo | ||
//go:generate goversioninfo -icon=res/papp.ico | ||
package main | ||
|
||
import ( | ||
"encoding/json" | ||
"io/ioutil" | ||
"os" | ||
"path" | ||
|
||
. "github.com/portapps/portapps" | ||
"github.com/portapps/portapps/pkg/utl" | ||
) | ||
|
||
var ( | ||
app *App | ||
) | ||
|
||
func init() { | ||
var err error | ||
|
||
// Init app | ||
if app, err = New("rambox-portable", "Rambox"); err != nil { | ||
Log.Fatal().Err(err).Msg("Cannot initialize application. See log file for more info.") | ||
} | ||
} | ||
|
||
func main() { | ||
utl.CreateFolder(app.DataPath) | ||
app.Process = utl.PathJoin(app.AppPath, "Rambox.exe") | ||
|
||
configPath := path.Join(app.DataPath, "config.json") | ||
if _, err := os.Stat(configPath); err == nil { | ||
rawSettings, err := ioutil.ReadFile(configPath) | ||
if err == nil { | ||
jsonMapSettings := make(map[string]interface{}) | ||
json.Unmarshal(rawSettings, &jsonMapSettings) | ||
Log.Info().Msgf("Current config: %s", jsonMapSettings) | ||
|
||
jsonMapSettings["auto_launch"] = false | ||
Log.Info().Msgf("New config: %s", jsonMapSettings) | ||
|
||
jsonSettings, err := json.Marshal(jsonMapSettings) | ||
if err != nil { | ||
Log.Error().Err(err).Msg("Update config marshal") | ||
} | ||
err = ioutil.WriteFile(configPath, jsonSettings, 0644) | ||
if err != nil { | ||
Log.Error().Err(err).Msg("Write config") | ||
} | ||
} | ||
} | ||
|
||
app.Launch(os.Args[1:]) | ||
} |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.