Skip to content

Initial Vue-Cli plugin electron builder push #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
build
.DS_Store
node_modules
components
cache
docs
deploy/*.html
*.log
*.map
deploy/assets/js/*.js
deploy/assets/css/*.css
deploy/tasks-test.html
deploy/assets/templates/default
deploy/captions.html
/dist

deploy/index.html
# local env files
.env.local
.env.*.local

deploy/new.html
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

deploy/preview.html
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

deploy/remote.html

deploy/tasks-terminal.html

deploy/tasks.html
#Electron-builder output
/dist_electron
86 changes: 12 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,86 +1,24 @@
# Deprecated
With the release of SpringRoll 2.0 this repository has been deprecated.
# springroll-studio

To manage captions you can checkout the new online solution at [springroll.io](http://springroll.io) and for creating new game projects you can check out [SpringRoll-Seed](https://github.com/SpringRoll/Springroll-Seed)

SpringRollStudio [![Dependency Status](https://david-dm.org/SpringRoll/SpringRollStudio.svg)](https://david-dm.org/SpringRoll/SpringRollStudio)
============

SpringRollStudio is an native application (build with [NW.js](http://nwjs.io/) and designed to provide graphic user interfaces for building and managing [SpringRoll](https://github.com/SpringRoll/SpringRoll) projects.

**Features**
* Manage a captions library
* Remote debugging over a network
* Run Grunt tasks for SpringRoll projects
* Scaffold a new project with support for custom templates

## Dependencies

In order to build SpringRollStudio, there are some external global dependencies that are required.

### grunt

Grunt is required to build. See the [getting started guide](http://gruntjs.com/getting-started).

```bash
npm install -g grunt-cli
## Project setup
```

### appdmg

[node-appdmg](https://github.com/LinusU/node-appdmg) is required to create the OS X DMG installer image.

```bash
npm install -g appdmg
npm install
```

### makensis

[makensis](http://nsis.sourceforge.net/Main_Page) is required to create the Windows setup executable. Can be installed with [brew](http://brew.sh/):

```bash
brew install makensis
### Compiles and hot-reloads for development
```

### xquarts & wine

On OSX if building for Windows, Wine needs to be installed to create the application icon. First install xquartz by downloading [here](http://xquartz.macosforge.org/landing/), then Wine can be installed with [Homebrew](http://brew.sh/)

```bash
brew install wine
npm run serve
```

## Building

Before building, make sure to run NPM install to import Node dependencies for building the project.

```bash
npm install
### Compiles and minifies for production
```

The build tasks extend [project-grunt](https://github.com/CloudKidStudio/project-grunt) and all those Grunt tasks can be used when building SpringRoll Studio. In addition, there are several Grunt tasks that are specific and useful to building the [NW.js](http://nwjs.io/) app:

Task | Description
---|---
**app:(win32,win64,osx64,osx32)** | Builds a release version of the NW.js app, when no platform is specified, all platforms are built.
**app-debug:(win32,win64,osx64,osx32)** | Builds a debug version of the NW.js app, when no platform is specified, all platforms are build in debug mode.
**package:(win32,win64,osx64,osx32)** | Create the OSX and Windows installers, also optional platform
**open:(win32,win64,osx64,osx32)** | Open the OSX application, also optional platform

### Examples

Build SpringRollStudio in debug mode for OS X run:

```bash
grunt app-debug:osx64 open:osx64
npm run build
```

Build SpringRollStudio for all platforms and package for all using:

```bash
grunt app package
### Lints and fixes files
```
npm run lint
```

### Known Issues

* On OS X, building Windows 32-bit and 64-bit platforms back-to-back have been known to fail when using Wine to update the icon. The workaround is to build one platform at a time.
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
Loading