Skip to content

Commit

Permalink
Initial version based on Visual Studio Code 1.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed May 30, 2018
0 parents commit 3c68e50
Show file tree
Hide file tree
Showing 16 changed files with 305 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
42 changes: 42 additions & 0 deletions .github/SUPPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Support [![](https://isitmaintained.com/badge/resolution/portapps/vscode-portable.svg)](https://isitmaintained.com/project/portapps/vscode-portable)

## Reporting an issue

First search for [existing issues](https://github.com/portapps/vscode-portable/issues?utf8=%E2%9C%93&q=). If it did not help you, [create a new issue](https://github.com/portapps/vscode-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. 1.23.1-1 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
### Logs
Join the log file `vscode-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.
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

## 1.23.1-1 (2018/05/30)

* Initial version based on Visual Studio Code 1.23.1
37 changes: 37 additions & 0 deletions Gopkg.lock

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

8 changes: 8 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[metadata]
package = "github.com/portapps/vscode-portable"
homepage = "https://github.com/portapps/vscode-portable"
license = "MIT"

[[constraint]]
branch = "master"
name = "github.com/portapps/portapps"
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/vscode-portable" target="_blank"><img width="100" src="https://github.com/portapps/vscode-portable/blob/master/res/papp.png"></a></p>

<p align="center">
<a href="https://portapps.github.io/app/vscode-portable/#download"><img src="https://img.shields.io/github/release/portapps/vscode-portable.svg?style=flat-square" alt="GitHub release"></a>
<a href="https://portapps.github.io/app/vscode-portable/#download"><img src="https://img.shields.io/github/downloads/portapps/vscode-portable/total.svg?style=flat-square" alt="Total downloads"></a>
<a href="https://ci.appveyor.com/project/portapps/vscode-portable"><img src="https://img.shields.io/appveyor/ci/portapps/vscode-portable.svg?style=flat-square" alt="AppVeyor"></a>
<a href="https://goreportcard.com/report/github.com/portapps/vscode-portable"><img src="https://goreportcard.com/badge/github.com/portapps/vscode-portable?style=flat-square" alt="Go Report"></a>
<a href="https://www.codacy.com/app/portapps/vscode-portable"><img src="https://img.shields.io/codacy/grade/0f8383fe240048b49444000867f6e7cd.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

[Visual Studio Code](https://code.visualstudio.com) portable app made with 🚀 [Portapps](https://portapps.github.io).<br />
Documentation and downloads can be found on https://portapps.github.io/app/vscode-portable

## How can i help ?

All kinds of contributions are welcomed :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).
59 changes: 59 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
version: '{build}'

platform:
- x64

clone_folder: C:\gopath\src\github.com\portapps\vscode-portable
test: off

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

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\vscode-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
28 changes: 28 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Portapps
#core.dir = vendor/github.com/portapps/portapps
core.dir = ../portapps

# App
app = vscode
app.name = Visual Studio Code
app.type = archive
app.version = 1.23.1

# Portable app
papp.id = ${app}-portable
papp.guid = {0F8DC079-0041-461C-A0F7-8337AFA7EF67}
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 artifact
atf.id = VSCode
atf.win32.filename = ${atf.id}-win32-${app.version}
atf.win32.ext = .zip
atf.win32.url = https://az764295.vo.msecnd.net/stable/d0182c3417d225529c6d5ad24b7572815d0de9ac/VSCode-win32-ia32-${app.version}.zip
atf.win32.assertextract = Code.exe
atf.win64.filename = ${atf.id}-win64-${app.version}
atf.win64.ext = .exe
atf.win64.url = https://az764295.vo.msecnd.net/stable/d0182c3417d225529c6d5ad24b7572815d0de9ac/VSCode-win32-x64-${app.version}.zip
atf.win64.assertextract = Code.exe
19 changes: 19 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="vscode" basedir=".">

<dirname property="app.basedir" file="${ant.file.vscode}"/>
<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"/>

</project>
29 changes: 29 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//go:generate go get -v github.com/josephspurrier/goversioninfo/...
//go:generate goversioninfo -icon=res/papp.ico
package main

import (
"os"

. "github.com/portapps/portapps"
)

func init() {
Papp.ID = "vscode-portable"
Papp.Name = "Visual Studio Code"
Init()
}

func main() {
Papp.AppPath = AppPathJoin("app")
Papp.DataPath = CreateFolder(AppPathJoin("data"))
Papp.Process = PathJoin(Papp.AppPath, "Code.exe")
Papp.Args = []string{"--log debug"}
Papp.WorkingDir = PathJoin(Papp.AppPath)

OverrideEnv("VSCODE_APPDATA", PathJoin(Papp.DataPath, "appdata"))
OverrideEnv("VSCODE_LOGS", PathJoin(Papp.DataPath, "logs"))
OverrideEnv("VSCODE_EXTENSIONS", PathJoin(Papp.DataPath, "extensions"))

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 3c68e50

Please sign in to comment.