GithubHelp home page GithubHelp logo

gorc's Introduction

gorc

This utility is a Win32 resource compiler written in Go. It currently only supports version stamp and message table resources, although support for other resource types may be added in the future. It may be used to add resources to a Win32 executable compiled from Go. It is run on the executable after it is built and modifies it to add the resources.

Usage

The utility should be invoked with two paths on the command line, the first specifying a JSON file containing the resources to be compiled and the second specifying the executable file to which they should be added.

gorc hello_resources.json hello.exe

There is also a flag --discard that can be used to instruct the utility to delete any resources that already exist in the executable.

gorc --discard hello_resources.json hello.exe

JSON File Format

The following is an example JSON file showing the format used to specify the resources. All version information fields are optional and may be omitted if not needed.

{
	"language": "en-us",
	"messageTable": [
		{
			"id": 1,
			"severity": "Error", // also supported: "Success", "Informational", "Warning"
			"messageText": "Hello, %1!"
		}
	],
	"version": {
		"fileVersion": "1.0.0.0",
		"productVersion": "1.0.0.0",
		"fileFlags": ["VS_FF_DEBUG", "VS_FF_PRERELEASE"],
		"fileOS": "VOS_NT_WINDOWS32",
		"fileType": "VFT_APP",
		"fileSubtype": "VFT2_UNKNOWN",
		"stringFileInfo": {
			"comments": "Example executable to demonstrate version stamping with gorc.",
			"companyName": "MongoDB",
			"fileDescription": "Hello",
			"fileVersion": "1.0",
			"internalName": "hello",
			"legalCopyright": "Copyright (C) 2014 MongoDB, Inc.",
			"legalTrademarks": "MongoDB is a registered trademark of MongoDB, Inc.",
			"originalFilename": "hello.exe",
			"productName": "Hello",
			"productVersion": "1.0"
		}
	}
}

gorc's People

Contributors

dgolub avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.