- Using Windows 10 on ARM, Install Visual Studio with ARM compiler support
- Manually install and configure ANT with Microsoft's experimental ARM Java build https://github.com/microsoft/openjdk-aarch64/releases
- Download the x86 version of Cygwin (the 64-bit version will NOT run on ARM64)
- Take the defaults
- When prompted select a reputable mirror (e.g. for US: https://mirrors.rit.edu)
- Cygwin will ask for packages. Many required packages are provided by default (
shell,sed,grep) however the following must be manually selected:
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
| // TODO: This successfully replaces the icon but the EXE won't run afterwards | |
| package com.company; | |
| import com.kichik.pecoff4j.PE; | |
| import com.kichik.pecoff4j.ResourceDirectory; | |
| import com.kichik.pecoff4j.ResourceDirectoryTable; | |
| import com.kichik.pecoff4j.ResourceEntry; | |
| import com.kichik.pecoff4j.constant.ResourceType; | |
| import com.kichik.pecoff4j.io.DataReader; |