- Install webpack plugin to copy files
npm install copy-webpack-plugin
- Place your
icon.png
in the directory - Update webpack config -- see file below
- Update package metadata --- see file below
- Run
npm run build
This file contains hidden or 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
/*! | |
* OS.js - JavaScript Cloud/Web Desktop Platform | |
* | |
* Copyright (c) 2011-2019, Anders Evenrud <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, this |
This file contains hidden or 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
import './index.scss'; | |
import osjs from 'osjs'; | |
import {name as applicationName} from './metadata.json'; | |
// Our launcher | |
const register = (core, args, options, metadata) => { | |
// Create a new Application instance | |
const proc = core.make('osjs/application', {args, options, metadata}); | |
// Create a new Window instance |
OS.js v3 has been released
This is the "general" list of tasks for OS.js v3 development. I'm just adding things here as I go or things pop into mind. So if you see anything interesting and you want to pitch in, that'd be much appreciated.
See the following repositories for issues/todos that are not included here:
- Client: https://github.com/os-js/osjs-client
- Server: https://github.com/os-js/osjs-server
- User Interfaces: https://github.com/os-js/osjs-gui
- Dialog Interfaces: https://github.com/os-js/osjs-dialogs
This file contains hidden or 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
// | |
// Your component(s). | |
// | |
class MainWindowComponent extends React.Component { | |
constructor(props) { | |
super(props); |
This file contains hidden or 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
// | |
// Your component(s). | |
// | |
class MainWindowComponent extends React.Component { | |
constructor(props) { | |
super(props); |
This is a WIP bare-bones template for OS.js v3 apps.
Place it in src/packages/MyApplication
and the build system will automatically recognice your package.
Then in console OSjs.run('MyApplication')
NOW AVAILABLE AS A PACKAGE: https://github.com/os-js/osjs-example-package
This file contains hidden or 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
; Command & Conquer RULES.INI | |
; If placed in game directory, it will not override built in values. Values to be used as | |
; multipliers or percentages can be specified as either a simple floating point number (embed ".") | |
; or as a conventional percentage number (append "%"). Values used as cell distances or time delays | |
; are specified as simple floating point number. Distance values are expressed in cells. Time | |
; values are expressed in minutes. | |
; This is not the real file because there is none - the C&C rules were hard-coded into the game.dat | |
; file (C&C95.exe in Win95 Edition). This is what the file could have been like, based on what | |
; editors/testing tells us, as well as what the values were in Red Alert, which is VERY similar to |
This file contains hidden or 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
/* eslint new-cap:"off" */ | |
/* eslint dot-notation:"off" */ | |
let layer; | |
// | |
// This is the backward compability layer for OS.js v2.0.x | |
// | |
// I THINK THIS MIGHT BE A BIT BROKEN ATM. PLEASE NOTE THAT THIS IS NOT MEANT | |
// FOR USAGE, IT'S JUST A TOOL TO HELP MIGRATION. | |
// |