Skip to content

Commit

Permalink
Do stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alicerunsonfedora committed Sep 26, 2020
1 parent e4710d3 commit 9a1f573
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 17 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ Currently, there aren't any releases ready.
If you prefer testing builds, you may want to consider the [Termina for macOS Beta Program](https://terminagame.github.io/mac/tutoriel.html).

## Building from source
This project makes use of CocoaPods and the AppCenter framework to compile and run this game. These frameworks are usually used for the Beta Program and its analytic features.

1. Clone the project locally and ensure that you have installed CocoaPods (if you use Homebrew, type `brew install cocoapods` in a terminal).
2. In a terminal, type `pod install` to install the framework.
3. Open the _workspace_ in Xcode and change the developer signing to your own account.
4. Build and run the application. If you want to make a _release_ rather than a _debug_ version, change the scheme from 'Termina' to 'Termina (Release)'.
1. Clone the project locally.
2. Open the project in Xcode and change the developer signing to your own account.
3. Build and run the application. If you want to make a _release_ rather than a _debug_ version, change the scheme from 'Termina' to 'Termina (Release)'.
8 changes: 6 additions & 2 deletions Termina.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
BF90A4C921C03D8100F64D5D /* GhostMenuMusic.aif in Resources */ = {isa = PBXBuildFile; fileRef = BF90A4C821C03D8100F64D5D /* GhostMenuMusic.aif */; };
BFA433C621B2FCA200E6FB45 /* BetaHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA433C521B2FCA200E6FB45 /* BetaHandler.swift */; };
BFBE9C1221B5E6A300AA1C6C /* BetaProgramPane.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFBE9C1021B5E6A300AA1C6C /* BetaProgramPane.swift */; };
BFD29703251FDAE70013E179 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = BFD29702251FDAE70013E179 /* README.md */; };
BFF9FBBB21B320FB001DAAC9 /* Tutorial.sks in Resources */ = {isa = PBXBuildFile; fileRef = BFF9FBBA21B320FB001DAAC9 /* Tutorial.sks */; };
BFF9FBBD21B329AB001DAAC9 /* TutorialRoomScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFF9FBBC21B329AB001DAAC9 /* TutorialRoomScene.swift */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -185,7 +186,6 @@
BF4AC24821C2A75B0050ACE7 /* NPC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NPC.swift; sourceTree = "<group>"; };
BF4AC24A21C2B7F60050ACE7 /* Speech.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Speech.swift; sourceTree = "<group>"; };
BF4AC24E21C2E5700050ACE7 /* GeneralPane.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeneralPane.swift; sourceTree = "<group>"; };
BF4AC25221C2E7010050ACE7 /* Termina macOS Beta Program.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = "Termina macOS Beta Program.rtf"; path = "../../../../../Library/Mobile Documents/com~apple~TextEdit/Documents/Termina macOS Beta Program.rtf"; sourceTree = "<group>"; };
BF4CA6BA21B5B01E007A39F1 /* Preferences.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Preferences.storyboard; sourceTree = "<group>"; };
BF4CA6BC21B5B500007A39F1 /* PreferencesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesViewController.swift; sourceTree = "<group>"; };
BF4CA6BE21B5B59D007A39F1 /* PreferencesWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesWindowController.swift; sourceTree = "<group>"; };
Expand All @@ -198,6 +198,7 @@
BFA433C521B2FCA200E6FB45 /* BetaHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BetaHandler.swift; sourceTree = "<group>"; };
BFBC47A121C2A710002A6C28 /* Termina macOS Beta Program.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = "Termina macOS Beta Program.rtf"; sourceTree = "<group>"; };
BFBE9C1021B5E6A300AA1C6C /* BetaProgramPane.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BetaProgramPane.swift; sourceTree = "<group>"; };
BFD29702251FDAE70013E179 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
BFF9FBBA21B320FB001DAAC9 /* Tutorial.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = Tutorial.sks; sourceTree = "<group>"; };
BFF9FBBC21B329AB001DAAC9 /* TutorialRoomScene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TutorialRoomScene.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -220,6 +221,7 @@
BF082D3B21AC99FF00B5406C = {
isa = PBXGroup;
children = (
BFD29702251FDAE70013E179 /* README.md */,
BF082D4621AC99FF00B5406C /* Termina */,
BF082D4521AC99FF00B5406C /* Products */,
BF082DAC21AC9EA900B5406C /* Frameworks */,
Expand Down Expand Up @@ -420,7 +422,6 @@
BFBC47A021C2A708002A6C28 /* Documents */ = {
isa = PBXGroup;
children = (
BF4AC25221C2E7010050ACE7 /* Termina macOS Beta Program.rtf */,
BF082DB121AD8CC100B5406C /* About.rtf */,
BFBC47A121C2A710002A6C28 /* Termina macOS Beta Program.rtf */,
);
Expand Down Expand Up @@ -545,6 +546,7 @@
BF082D8B21AC9A4500B5406C /* Main.storyboard in Resources */,
BF1408A821B09B9800A7E70E /* 9.sks in Resources */,
BF1408A121B09B9800A7E70E /* 15.sks in Resources */,
BFD29703251FDAE70013E179 /* README.md in Resources */,
BF14089E21B09B9800A7E70E /* 3.sks in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -733,6 +735,7 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = FQQXSP79X3;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = Termina/Info.plist;
Expand All @@ -756,6 +759,7 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = FQQXSP79X3;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = Termina/Info.plist;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>Playground (Playground) 1.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>3</integer>
</dict>
<key>Playground (Playground) 2.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>4</integer>
</dict>
<key>Playground (Playground).xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>2</integer>
</dict>
<key>Termina (Release).xcscheme</key>
<dict>
<key>orderHint</key>
Expand Down
2 changes: 1 addition & 1 deletion Termina/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>beta2</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.games</string>
<key>LSMinimumSystemVersion</key>
Expand Down
12 changes: 6 additions & 6 deletions Termina/Preferences/BetaProgramPane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Cocoa

class BetaProgramPane: PreferencesViewController {

@IBOutlet weak var sendAnalytics: NSButton!
// @IBOutlet weak var sendAnalytics: NSButton!
@IBOutlet weak var demoMode: NSButton!

override func viewDidLoad() {
Expand All @@ -30,11 +30,11 @@ class BetaProgramPane: PreferencesViewController {
}

override func viewDidDisappear() {
if sendAnalytics.state == .on {
TerminaUserDefaults().setBetaAnalytics(status: true)
} else {
TerminaUserDefaults().setBetaAnalytics(status: false)
}
// if sendAnalytics.state == .on {
// TerminaUserDefaults().setBetaAnalytics(status: true)
// } else {
// TerminaUserDefaults().setBetaAnalytics(status: false)
// }

if demoMode.state == .on {
TerminaUserDefaults().toggleDemoMode(status: true)
Expand Down
7 changes: 4 additions & 3 deletions Termina/Storyboards/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17156" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17156"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -178,7 +179,7 @@
<scene sceneID="R2V-B0-nI4">
<objects>
<windowController id="B8D-0N-5wS" sceneMemberID="viewController">
<window key="window" title="Termina" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" tabbingMode="disallowed" id="IQv-IB-iLA">
<window key="window" title="Termina" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" appearanceType="darkAqua" animationBehavior="default" tabbingMode="disallowed" id="IQv-IB-iLA">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="480" height="270"/>
Expand Down

0 comments on commit 9a1f573

Please sign in to comment.