npm

Need private packages and team management tools?Check out npm Orgs. »

@shockpkg/swf-projector

1.4.1 • Public • Published

swf-projector

Package for creating Flash Player projectors

npm node

dependencies size downloads

travis-ci

Overview

Creates Flash projectors from a standalone Flash Player.

Takes a standalone Flash Player file, a directory containing a standalone Flash Player, or a shockpkg standalone Flash Player package file.

Certain features may only work on certain platforms.

Reading DMG projector packages and removing Mac APP code signatures is only supported on MacOS.

Features that modify Windows EXE resources requires either Windows or Wine in the path.

Usage

Basic Usage

Windows

import {ProjectorWindows} from '@shockpkg/swf-projector';
 
async function main() {
    const projector = new ProjectorWindows({
        player: 'player.zip',
        movieFile: 'movie.swf'
    });
    await projector.write('out-dir-windows', 'application.exe');
}
main().catch(err => {
    process.exitCode = 1;
    console.error(err);
});

Mac App

import {ProjectorMacApp} from '@shockpkg/swf-projector';
 
async function main() {
    const projector = new ProjectorMacApp({
        player: 'player.dmg',
        movieFile: 'movie.swf'
    });
    await projector.write('out-dir-macapp', 'application.app');
}
main().catch(err => {
    process.exitCode = 1;
    console.error(err);
});

Linux 32-bit

import {ProjectorLinux} from '@shockpkg/swf-projector';
 
async function main() {
    const projector = new ProjectorLinux({
        player: 'player.tar.gz',
        movieFile: 'movie.swf'
    });
    await projector.write('out-dir-linux', 'application');
}
main().catch(err => {
    process.exitCode = 1;
    console.error(err);
});

Linux 64-bit

import {ProjectorLinux64} from '@shockpkg/swf-projector';
 
async function main() {
    const projector = new ProjectorLinux64({
        player: 'player.tar.gz',
        movieFile: 'movie.swf',
        patchProjectorOffset: true // Necessary unless the binaries get fixed.
    });
    await projector.write('out-dir-linux64', 'application');
}
main().catch(err => {
    process.exitCode = 1;
    console.error(err);
});

Bugs

If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.

License

Copyright (c) 2019 JrMasterModelBuilder

Licensed under the Mozilla Public License, v. 2.0.

If this license does not work for you, feel free to contact me.

install

npm i @shockpkg/swf-projector

Downloadsweekly downloads

28

version

1.4.1

license

MPL-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability