Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonyea committed Mar 22, 2021
0 parents commit 72b3911
Show file tree
Hide file tree
Showing 21 changed files with 730 additions and 0 deletions.
Binary file added App/AppInfo/Launcher/Splash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions App/AppInfo/Launcher/UnCivPortable.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
;This is an example launcher INI that is part of the PortableApps.com Template
;It uses a standard Windows INI format, so any line starting with a semi-colon is treated as a comment
;It is recommended that you use a coding text editor to edit this, preferably one with context highlighting
;If editing with Notepad++, be sure you have turned off the option to add a BOM as it will break the INI
;Full details: http://portableapps.com/manuals/PortableApps.comLauncher/

[Launch]
;This section details how an app is started and where it works
;ProgramExecutable is the EXE to run to start the app relative to the UncivPortable\App directory
ProgramExecutable=Unciv\x86\Unciv.exe
;ProgramExecutable64 is an optional EXE to run if running on Windows 64-bit
ProgramExecutable64=Unciv\x64\Unciv.exe
;CommandLineArguments is an optional setting that will cause the above EXE to be launched with this string passed
;CommandLineArguments=-settings=%PAL:DataDir%\
;WorkingDirectory is the directory that will be used when launching which other items will be relative to. Use should be avoided when possible as it will prevent passing multiple relative file locations via command line
;WorkingDirectory=%PAL:DataDir%\
;DirectoryMoveOK indicates whether a directory can be moved to a different path rather than just supporting drive letter changes
DirectoryMoveOK=yes
;SupportsUNC indicates whether an app can run from a Windows UNC path, often referred to as a network path
SupportsUNC=yes
;RunAsAdmin indicates whether an app requires admin rights to run. This should generally be avoided when possible
;Details: http://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.ini/launch.html#runasadmin
;RunAsAdmin=try

[Activate]
;This section lets the launcher know what functionality needs to be included.
;IMPORTANT: Any changes to this section will require the launcher to be recompiled.
;Registry indicates whether we will be reading or writing to the registry. If not, setting to false will make the launcher slightly smaller and cause it to start slightly faster.
Registry=false
;Java indicates whether the app needs Java to run
Java=find
;XML indicates whether the launcher will need to read or write to XML paths within settings files of the app. If not, setting to false will make the launcher slightly smaller and cause it to start slightly faster.
;XML=true

[Environment]
;This section lets the launcher know what environment variables need to be set. If not needed, this can be removed.
;UncivExamplePath=%PAL:AppDir%\App\Unciv


;ENVIRONMENT VARIABLES FOR USE WITH DIRECTORIES AND FILES
;These next sections deal with directory and file handling. For these, environment variable substitutions will apply
;Environment variables: http://portableapps.com/manuals/PortableApps.comLauncher/ref/envsub.html#ref-envsub

Binary file added App/AppInfo/appicon.ico
Binary file not shown.
Binary file added App/AppInfo/appicon_128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/AppInfo/appicon_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/AppInfo/appicon_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/AppInfo/appicon_75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions App/AppInfo/appinfo.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
;This is an example appinfo.ini that is part of the PortableApps.com Template
;It uses a standard Windows INI format, so any line starting with a semi-colon is treated as a comment
;It is recommended that you use a coding text editor to edit this
;If editing with Notepad++, be sure you have turned off the option to add a BOM as it will break the INI
;Full details on this file: https://portableapps.com/development/portableapps.com_format#appinfo

[Format]
;This section is used by the PortableApps.com Installer and does not normally need to be edited
Type=PortableAppsFormat
Version=3.5

[Details]
;The app details that will be shown to the user and used by the PortableApps.com Platform
;Name is the name of the app. Generally the normal name of the app with " Portable" added to the end
Name=Unciv Portable
;AppId is a unique id used by the Platform's updater and app store as well as the Installer
AppId=UncivPortable
;Publisher includes the name of the original publisher and the organization packaging if different
Publisher=AppName Team & PortableApps.com
;Homepage is the URL of the portable app's homepage which may differ from the app's main homepage
Homepage=https://portableapps.com/development
;Donate is the URL for donations to contribute money to help with development
;Donate=AppName.com/donations
;Category is the type of app. It is used by the Platform for organization. Valid entries are: Accessibility, Development, Education, Games, Graphics & Pictures, Internet, Music & Video, Office, Security or Utilities. Only these exact entries are accepted
Category=Games
;Description is a short description of the app. The app name should be omitted. Examples include: "Web browser", "Email client", etc
Description=An open-source, mod-friendly Android+Desktop remake of Civ V
;Language indicates how the installer will be built. If a single language, the installer will be built in that language. If Multilingual, a standard installer with all languages will be built. Generally, only Multilingual or English apps are released by PortableApps.com. A full list of languages is available
Language=Multilingual

[License]
;This section includes licensing details on the bundled app.
;Shareable indicates whether an app may be shared from one user to another. Generally true except for commercial apps
Shareable=true
;OpenSource indicates whether an app is open source under an OSI license
OpenSource=true
;Freeware indicates whether an app is freeware and may be used with no charge to the user
Freeware=true
;CommercialUse indicates whether this app may legally be used in a business setting. Some freeware prohibits this
CommercialUse=true
;EULAVersion is the version of the license that comes with the app that the user must agree to before use. This is included as a file EULA.txt within the AppInfo directory. An EULA should *only* be used if the user is required to agree to it before installing. Each time a major change is made to the EULA (not just a formatting change) the version should be increased. Note that open source licenses (GPL, MIT, etc) do not need to be agreed to by the user and should not be included as an EULA.txt.
;EULAVersion=1

[Dependencies]
;This section indicates to the launcher and platform what this app needs to function
;See details at: https://portableapps.com/development/portableapps.com_format#appinfo
UsesJava=yes


[Version]
;PackageVersion is used by the installer and the updater. It must be in dotted quad X.X.X.X format for use by Windows. You must ensure that each successive version has a higher package version than the previous or it will not be treated as a newer version by the platform's updater. Generally, the PackageVersion is based on the DisplayVersion. So an app with version 3.5 will have a package version of 3.5.0.0.
PackageVersion=3.13.10.0
;DisplayVersion is displayed to the user and used in naming the installer
DisplayVersion=3.13.10
;Some example Display and Package versions
;3.5 would be 3.5.0.0
;4.5a would be 4.5.1.0
;1.2 Dev Test 1 would be 1.1.99.1 Why? So we can have room to grow and still use 1.2.0.0 as the official stable release. Dev tests with 3 and 4 digit numbers can be indicated similarly. 4.5.1 Dev Test 1 would be 4.4.1.991 and 4.5.1.1 Dev Test 1 would be 4.5.0.991.

[Control]
;This indicates to the platform how many icons a given app should have and how the app should be started. All official apps should generally have a single icon. The only exception is for office suites that include multiple big apps. See LibreOffice Portable for an example.
Icons=1
;Start is the EXE that should be run to start the app
Start=UnCivPortable.exe
;BaseAppID is the app ID used by Windows for taskbar pinning
;BaseAppID=%BASELAUNCHERPATH%\App\AppName\AppName.exe
;BaseAppID64=%BASELAUNCHERPATH%\App\AppName64\AppName.exe
48 changes: 48 additions & 0 deletions App/AppInfo/installer.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
;This is an example installer.ini that is part of the PortableApps.com Template
;It uses a standard Windows INI format, so any line starting with a semi-colon is treated as a comment
;It is recommended that you use a coding text editor to edit this
;If editing with Notepad++, be sure you have turned off the option to add a BOM as it will break the INI
;
;This file is not normally needed for the majority of apps. We recommend including it for any apps that must have user settings moved to App when running and back to Data when closed. That way, if Windows crashes/restarts or an unsafe eject is done and the user then upgrades the app without running it first so that the PA.c Launcher can clean up the data, no data is lost
;
;Full details on this file: https://portableapps.com/development/portableapps.com_format#installer

[DirectoriesToPreserve]
;This indicates to the installer that these files will be preserved. We do this so that the fictitious portable configuration directory we handle in the example AppNamePortable.ini isn't lost if a crash and the upgrade occurs.
PreserveDirectory1=App\Unciv\x86\SaveFiles
PreserveDirectory2=App\Unciv\x86\mods
PreserveDirectory3=App\Unciv\x86\music
PreserveDirectory4=App\Unciv\x64\SaveFiles
PreserveDirectory5=App\Unciv\x64\mods
PreserveDirectory6=App\Unciv\x64\music

[FilesToPreserve]
;This indicates to the installer that these files will be preserved. Wildcards are supported. We do this so that the fictitious portable configuration file we handle in the example AppNamePortable.ini isn't lost if a crash and the upgrade occurs.
PreserveFile1=App\Unciv\x86\GameSettings.json
PreserveFile2=App\Unciv\x86\mods\*
PreserveFile3=App\Unciv\x86\music\*
PreserveFile4=App\Unciv\x86\SaveFiles\*
PreserveFile5=App\Unciv\x64\GameSettings.json
PreserveFile6=App\Unciv\x64\mods\*
PreserveFile7=App\Unciv\x64\music\*
PreserveFile8=App\Unciv\x64\SaveFiles\*

[CheckRunning]
CloseEXE=Unciv.exe

[DownloadFiles]
AdditionalInstallSize=200M

DownloadURL=https://github.com/yairm210/Unciv/releases/download/3.13.10/Unciv-Windows64.zip
DownloadName=Unciv-Windows64.zip
DownloadFilename=Unciv-Windows64.zip
DownloadMD5=97ca811ce33993bde28247b01d495b35
AdvancedExtract1To=App\Unciv\x64\
AdvancedExtract1Filter=**

Download2URL=https://github.com/yairm210/Unciv/releases/download/3.13.10/Unciv-Windows32.zip
Download2Name=Unciv-Windows32.zip
Download2Filename=Unciv-Windows32.zip
DownloadMD5=12f69005f115b8dc29a836830fe08300
AdvancedExtract2To=App\Unciv\x86\
AdvancedExtract2Filter=**
14 changes: 14 additions & 0 deletions App/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# General note about the App directory

This directory contains files used by the portable app.
They should generally not be accessed directly by users.

User data or settings should not be stored within the App
directory or its sub-directories. Any data stored here
will likely be deleted on upgrades.

# Specific Note about Unciv Data

All Unciv data lives next to its executable jar in the App directory due to how Unciv was built.

This data (game saves, music, mods, GameSettings.json, etc.) is not expected to be lost during an upgrade. Future releases of this portable app may move this data to a more PAF-compatible location (`UnCivPortable\Data` folder).
Empty file added App/UnCiv/.gitkeep
Empty file.
Binary file added Other/Help/Images/Donation_Button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Other/Help/Images/Favicon.ico
Binary file not shown.
Binary file added Other/Help/Images/Help_Background_Footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Other/Help/Images/Help_Background_Header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Other/Help/Images/Help_Logo_Top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Other/Source/AppNamePortable.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AdditionalParameters=
DisableSplashScreen=false
RunLocally=false

# The above options are explained in the included readme.txt
# This INI file is an example only and is not used unless it is placed as described in the included readme.txt
Loading

0 comments on commit 72b3911

Please sign in to comment.