-
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Rocket.Chat 2.10.1
- Loading branch information
0 parents
commit 020280f
Showing
15 changed files
with
311 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,42 @@ | ||
# Support [![](https://isitmaintained.com/badge/resolution/portapps/rocketchat-portable.svg)](https://isitmaintained.com/project/portapps/rocketchat-portable) | ||
|
||
## Reporting an issue | ||
|
||
First search for [existing issues](https://github.com/portapps/rocketchat-portable/issues?utf8=%E2%9C%93&q=). If it did not help you, [create a new issue](https://github.com/portapps/rocketchat-portable/issues/new) based on this template : | ||
|
||
``` | ||
### 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. 0.0.298-14 x64)** : | ||
**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 | ||
### Logs | ||
Join the log file `rocketchat-portable.log` to this issue. | ||
``` | ||
|
||
## 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. |
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,5 @@ | ||
# Changelog | ||
|
||
## 2.10.1-1 (2017/11/24) | ||
|
||
* Initial version based on Rocket.Chat 2.10.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,8 @@ | ||
[metadata] | ||
package = "github.com/portapps/rocketchat-portable" | ||
homepage = "https://github.com/portapps/rocketchat-portable" | ||
license = "MIT" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/portapps/portapps" |
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) 2017 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,53 @@ | ||
<p align="center"><a href="https://github.com/portapps/rocketchat-portable" target="_blank"><img width="100" src="https://github.com/portapps/rocketchat-portable/blob/master/res/papp.png"></a></p> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/portapps/rocketchat-portable/releases/latest"><img src="https://img.shields.io/github/release/portapps/rocketchat-portable.svg?style=flat-square" alt="GitHub release"></a> | ||
<a href="https://github.com/portapps/rocketchat-portable/releases/latest"><img src="https://img.shields.io/github/downloads/portapps/rocketchat-portable/total.svg?style=flat-square" alt="Total downloads"></a> | ||
<a href="https://ci.appveyor.com/project/crazy-max/rocketchat-portable"><img src="https://img.shields.io/appveyor/ci/crazy-max/rocketchat-portable.svg?style=flat-square" alt="AppVeyor"></a> | ||
<a href="https://goreportcard.com/report/github.com/portapps/rocketchat-portable"><img src="https://goreportcard.com/badge/github.com/portapps/rocketchat-portable?style=flat-square" alt="Go Report"></a> | ||
<a href="https://www.codacy.com/app/crazy-max/rocketchat-portable"><img src="https://img.shields.io/codacy/grade/8fa6391e00fc4a7e9eb1b1108d5655a2.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 | ||
|
||
[Rocket.Chat](https://rocket.chat/) portable app made with 🚀 [Portapps](https://github.com/portapps).<br /> | ||
Tested on Windows 7, Windows 8.1 and Windows 10. | ||
|
||
## Installation | ||
|
||
There are different kinds of artifacts : | ||
|
||
* `rocketchat-portable-{ia32,x64}-x.x.x-x-setup.exe` : Full portable release of Rocket.Chat as a setup. **Recommended way**! | ||
* `rocketchat-portable-{ia32,x64}-x.x.x-x.7z` : Full portable release of Rocket.Chat as a 7z archive. | ||
* `rocketchat-portable-{ia32,x64}.exe` : Only the portable binary (must be renamed `rocketchat-portable.exe`) | ||
* `rocketchat-x.x.x.exe` : The original release from the [official website](https://rocket.chat/download). | ||
|
||
### Fresh installation | ||
|
||
Install `rocketchat-portable-{ia32,x64}-x.x.x-x-setup.exe` where you want then run `rocketchat-portable.exe`. | ||
|
||
### App already installed | ||
|
||
If **you have already installed Rocket.Chat from the original release**, do the same thing as a fresh installation and move : | ||
|
||
* `%APPDATA%\Rocket.Chat+` to `data\AppData\Roaming\Rocket.Chat+`. | ||
|
||
Run `rocketchat-portable.exe` and then you can [remove](https://support.microsoft.com/en-us/instantanswers/ce7ba88b-4e95-4354-b807-35732db36c4d/repair-or-remove-programs) Rocket.Chat from your computer. | ||
|
||
### Upgrade | ||
|
||
**For an upgrade**, simply download and install the [latest rocketchat-portable setup](https://github.com/portapps/rocketchat-portable/releases/latest). | ||
|
||
## How can i help ? | ||
|
||
We welcome all kinds of contributions :raised_hands:!<br /> | ||
The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon:<br /> | ||
Any funds donated will be used to help further development on this project! :gift_heart: | ||
|
||
[![Donate Paypal](https://raw.githubusercontent.com/portapps/portapps/master/res/paypal.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). |
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,57 @@ | ||
version: '{build}' | ||
|
||
platform: | ||
- x64 | ||
|
||
clone_folder: C:\gopath\src\github.com\portapps\rocketchat-portable | ||
|
||
environment: | ||
JAVA_HOME: C:\Program Files\Java\jdk1.8.0 | ||
GOPATH: C:\gopath | ||
GOROOT: C:\go\ | ||
GOVERSION: 1.9.1 | ||
|
||
install: | ||
- ps: choco install ant | ||
- 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 | ||
- go version | ||
- go env | ||
|
||
configuration: | ||
- Release | ||
|
||
before_build: | ||
- go get -u -v github.com/portapps/portapps | ||
|
||
build_script: | ||
- ant release | ||
|
||
after_build: | ||
- ps: | | ||
$env:APP_VERSION = Get-Content C:\gopath\src\github.com\portapps\rocketchat-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: BGz5Z+cKh7a/UOFxIfBfZYho8Ghf3bO3LvaX70mdgiG1UDJhtW3FUGDjBrwyZglf | ||
artifact: release | ||
draft: true | ||
prerelease: false | ||
on: | ||
branch: master | ||
|
||
notifications: | ||
- provider: Slack | ||
incoming_webhook: | ||
secure: 6wcIQdnN6haB2OhAPJVhAoMpU1lLRM7tHmVUCfv2RZ/3gZSBCm7wCBde4Bx7zNyv3Qw6//VrX97ZD3ejdoyxfmFaXBomoclkVKJRcvCyn3s= |
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,30 @@ | ||
# Portapps | ||
#core.dir = vendor/github.com/portapps/portapps | ||
core.dir = ../portapps | ||
|
||
# App | ||
app = rocketchat | ||
app.name = Rocket.Chat | ||
app.type = nsis-muarch | ||
|
||
# Portable app | ||
papp.id = ${app}-portable | ||
papp.guid = {AEB5A8E3-1C7B-4199-8D4F-AF840CABAA07} | ||
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 | ||
|
||
# NSIS Multi arch | ||
nsis-muarch.version = 2.10.1 | ||
|
||
# Official artifacts | ||
atf.id = Rocket.Chat | ||
atf.ia32.filename = rocketchat-setup-${nsis-muarch.version} | ||
atf.ia32.ext = .exe | ||
atf.ia32.url = https://github.com/RocketChat/Rocket.Chat.Electron/releases/download/${nsis-muarch.version}/rocketchat-setup-${nsis-muarch.version}.exe | ||
atf.ia32.assertextract = $PLUGINSDIR/app-32.7z | ||
atf.x64.filename = rocketchat-setup-${nsis-muarch.version} | ||
atf.x64.ext = .exe | ||
atf.x64.url = https://github.com/RocketChat/Rocket.Chat.Electron/releases/download/${nsis-muarch.version}/rocketchat-setup-${nsis-muarch.version}.exe | ||
atf.x64.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,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="rocketchat" basedir="."> | ||
|
||
<dirname property="app.basedir" file="${ant.file.rocketchat}"/> | ||
<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="ia32"/> | ||
<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> | ||
</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,27 @@ | ||
//go:generate go get -v github.com/josephspurrier/goversioninfo/... | ||
//go:generate goversioninfo -icon=res/papp.ico | ||
package main | ||
|
||
import ( | ||
. "github.com/portapps/portapps" | ||
) | ||
|
||
func init() { | ||
Papp.ID = "rocketchat-portable" | ||
Papp.Name = "Rocket.Chat" | ||
Init() | ||
} | ||
|
||
func main() { | ||
Papp.AppPath = AppPathJoin("app") | ||
Papp.DataPath = AppPathJoin("data") | ||
Papp.Process = PathJoin(Papp.AppPath, "Rocket.Chat+.exe") | ||
Papp.Args = nil | ||
Papp.WorkingDir = Papp.AppPath | ||
|
||
roamingPath := CreateFolder(PathJoin(Papp.DataPath, "AppData", "Roaming", "Rocket.Chat+")) | ||
Log.Infof("Roaming path: %s", roamingPath) | ||
|
||
OverrideEnv("USERPROFILE", Papp.DataPath) | ||
Launch() | ||
} |
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.