-
Notifications
You must be signed in to change notification settings - Fork 2
Building Sharp
Sharp uses gradle to build the source
First, cd to the directory of sharp, but not to the src folder
You can do this by running this on Linux's bash terminal:
cd /path/to/sharp
Or by typing cmd in Windows Explorer's address bar for Windows users
Then for Linux users do this:
$gradlew build
For Windows users do this:
C:/Users/(username)> gradlew.bat build
If you get an error saying
Redirection detected from https to http. Protocol switch unsafe, not allowed.
Then manually download This file and then put it in <your home directory>/.gradle/gradleFx/sdks/<some number>/in. (Thanks Jonathan50)
if the error looks something like this:
[ant:java] Java Result: 1
:compileFlex FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileFlex'.
> java.lang.Exception: mxmlc execution failed: C:\Users\(your username)\path\to\sharp\src\uiwidgets\VariableText
Field.as(26): col: 14 Warning: No constructor function was specified for class VariableTextField.
public class VariableTextField extends TextField {
^
C:\Users\(your username)\path\to\sharp\src\com\adobe\utils\macro\AGALVar.as(10): col: 15 Warning: No constructor function was specified for class AGALVar.
public class AGALVar
^
C:\Users\(your username)\path\to\sharp\src\util\GIFDecoder.as(37): col: 14 Warning: No constructor function was specified for class GIFDecoder.
public class GIFDecoder {
^
C:\Users\(your username)\path\to\sharp\src\Specs.as(32): col: 2 Error: Syntax error: expecting leftbrace before public.
public static const GET_VAR:String = "readVariable";
^
C:\Users\(your username)\path\to\sharp\src\com\adobe\utils\macro\VM.as(5): col: 15 Warning: No constructor function was specified for class VM.
public class VM
^
C:\Users\(your username)\path\to\Sharp\src\com\adobe\utils\AGALMacroAssembler.as(725): col: 16 Warning: No constructor function was specified for class Macro.
internal class Macro
^
C:\Users\(your username)\path\to\sharp\src\svgutils\SVGImportPath.as(33): col: 14 Warning: No constructor function was specified for class SVGImportPath.
public class SVGImportPath {
^
C:\Users\(your username)\path\to\sharp\src\util\JSON.as(33): col: 14 Warning: No constructor function was specified for class JSON.
public class JSON {
^
C:\Users\(your username)\path\to\Sharp\src\svgutils\SVGDisplayRender.as(39): col: 14 Warning: No constructor function was specified for class SVGDisplayRender.
public class SVGDisplayRender {
^
C:\Users\(your username)\path\to\sharp\src\com\adobe\utils\macro\ExpressionParser.as(159): col: 7 Warning: No constructor function was specified for class OpInfo.
class OpInfo
^
(etc)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 57.161 secs
you should fix your code
You can run the build.bat
file to build it immediately. Only works for Windows
Sharp is a Scratch 2.0 mod
Created by: DrKat123, Mrcomputer1 and some others